Skip to content

Comments

Remove unused parser version-check methods per review feedback#15

Merged
laeubi merged 2 commits intoissue_4849_mr_jlsfrom
copilot/address-review-comments-iloveeclipse
Feb 19, 2026
Merged

Remove unused parser version-check methods per review feedback#15
laeubi merged 2 commits intoissue_4849_mr_jlsfrom
copilot/address-review-comments-iloveeclipse

Conversation

Copy link

Copilot AI commented Feb 19, 2026

Addresses review comments from @iloveeclipse on PR eclipse-jdt#4856: remove dead code revealed by the fields-to-methods refactor.

  • Remove isParsingJava8Plus() — always returns true since Java 8 is the minimum supported version. Simplify 3 call sites by dropping the redundant check.
  • Remove unused methods with zero callers: isParsingJava11Plus(), isParsingJava15Plus(), isParsingJava18Plus(), isParsingJava21Plus(), isParsingJava22Plus()
  • Keep isParsingJava14Plus() — has active callers; reviewer noted full removal belongs in a later PR

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Remove isParsingJava8Plus() (always true, Java 8 is minimum), and
remove unused methods: isParsingJava11Plus(), isParsingJava15Plus(),
isParsingJava18Plus(), isParsingJava21Plus(), isParsingJava22Plus().

Replace isParsingJava8Plus() call sites with simplified expressions.

Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com>
Copilot AI changed the title [WIP] Address review comments from iloveeclipse Remove unused parser version-check methods per review feedback Feb 19, 2026
Copilot AI requested a review from laeubi February 19, 2026 10:33
@laeubi laeubi marked this pull request as ready for review February 19, 2026 10:36
@laeubi laeubi merged commit b567a5c into issue_4849_mr_jls Feb 19, 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.

2 participants