Skip to content

FINERACT-2846: Remove dead code block in TellerWritePlatformServiceJpaImpl - #6204

Open
prajakta128 wants to merge 1 commit into
apache:developfrom
prajakta128:remove-teller-dead-code
Open

prajakta128 wants to merge 1 commit into
apache:developfrom
prajakta128:remove-teller-dead-code

Conversation

@prajakta128

@prajakta128 prajakta128 commented Jul 30, 2026

Copy link
Copy Markdown

What

Removes an unreachable/no-op code block inside doTransactionForCashier() inTellerWritePlatformServiceJpaImpl.java.

Why

The block read an entityType parameter from the request and branched on its value ("loan account", "savings account", "client"), but every branch was either empty or entirely commented-out code. entityType was never referenced again anywhere else in the method or the file, so the block had zero effect on runtime behavior. The original
author had already flagged it themselves:

java // TODO: can we please remove this whole block?!? this is 20 lines of dead code!!! ​

This PR simply deletes that block. No behavior change.

JIRA

FINERACT-2846

Checklist

  • No behavior change — verified entityType is unused elsewhere in the file
  • Existing tests pass locally (pending — fixing local JAVA_HOME setup; will confirm once CI runs / once resolved locally)
  • Not a "code dump" — single, focused change

@prajakta128
prajakta128 force-pushed the remove-teller-dead-code branch from 518f05c to f5a91dc Compare July 31, 2026 05:27
@adamsaghy

Copy link
Copy Markdown
Contributor

@prajakta128 Please use the appropriate commit and PR title:
FINERACT-XXXX: short description

Example:
FINERACT-2684: Remove dead code block in TellerWritePlatformServiceJpaImpl

@prajakta128
prajakta128 force-pushed the remove-teller-dead-code branch from f5a91dc to eae5f9c Compare August 3, 2026 16:26
galovics
galovics previously approved these changes Aug 4, 2026

@galovics galovics left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adamsaghy

Copy link
Copy Markdown
Contributor

@prajakta128 Please rebase

1 similar comment
@adamsaghy

Copy link
Copy Markdown
Contributor

@prajakta128 Please rebase

@adamsaghy

Copy link
Copy Markdown
Contributor

Please use FINERACT-2846: prefix in PR title and commit message. The FINERACT-XXXX was just a dummy example... you should have created a jira story for these changes

@prajakta128
prajakta128 force-pushed the remove-teller-dead-code branch from bd550cb to 605318b Compare September 22, 2026 01:56
@prajakta128
prajakta128 force-pushed the remove-teller-dead-code branch from 605318b to 32eb9a8 Compare September 22, 2026 02:01
@prajakta128 prajakta128 changed the title Remove dead code block in TellerWritePlatformServiceJpaImpl FINERACT-2846: Remove dead code block in TellerWritePlatformServiceJpaImpl Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants