Skip to content

Modernize Java idioms in WizardNewFolderMainPage#4205

Open
deepika-u wants to merge 1 commit into
eclipse-platform:masterfrom
deepika-u:remove_redundant_return
Open

Modernize Java idioms in WizardNewFolderMainPage#4205
deepika-u wants to merge 1 commit into
eclipse-platform:masterfrom
deepika-u:remove_redundant_return

Conversation

@deepika-u

Copy link
Copy Markdown
Contributor

This change modernizes a few Java idioms in WizardNewFolderMainPage by:

  • Removing redundant return statements.
  • Replacing length() > 0 with isEmpty().
  • Simplify boolean initialization.
  • Use pattern matching for instanceof to simplify type checks and eliminate explicit casts.
  • Apply minor readability cleanups.

No functional or behavioral changes are intended.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   52m 32s ⏱️ - 8m 18s
 8 120 tests ±0   7 877 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 262 runs  ±0  19 608 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit d72bd75. ± Comparison against base commit ce4e10f.

@deepika-u

Copy link
Copy Markdown
Contributor Author

@HeikoKlare - Could you take a look at this when you get some time please?

@BeckerWdf BeckerWdf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change looks good to me

if (existingLink == null) {
setDefaultLinkValue = true;
} else {
boolean setDefaultLinkValue = existingLink == null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not a big fan of this change - but that might be personal taste.

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