Skip to content

Conversation

@jagdish-15
Copy link
Member

This PR is linked with this and addresses the issue raised on java-analyzer repo by @kahgoh!

Copy link

@siebenschlaefer siebenschlaefer left a comment

Choose a reason for hiding this comment

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

I'm not involved in the Java track, I just noticed two small things.

@@ -0,0 +1,3 @@
# avoid redundant ternary

Try returning the conditions directly instead of returning boolean literals (true and flase).
Copy link

@siebenschlaefer siebenschlaefer Apr 9, 2025

Choose a reason for hiding this comment

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

typo: flase
also, consider surrounding keywords with backticks: `true` and `false`

@@ -0,0 +1,3 @@
# avoid `if` statements

Consider converting the if statement(s) into a single expression using logical operators (`&&`, `||`) or ternary operators.
Copy link

@siebenschlaefer siebenschlaefer Apr 9, 2025

Choose a reason for hiding this comment

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

maybe surround the "if" with backticks: `if`

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching that, really appreciate it!

@IsaacG
Copy link
Member

IsaacG commented Apr 9, 2025

+cc @exercism/java

Copy link
Member

@kahgoh kahgoh left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@kahgoh
Copy link
Member

kahgoh commented Apr 28, 2025

+cc @exercism/guardians

@SleeplessByte SleeplessByte merged commit e7755e4 into exercism:main Apr 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

track/java Java track type/analyzer-comments Analyzer comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants