-
Notifications
You must be signed in to change notification settings - Fork 905
Handling of switch expressions and rule cases in Flow and NPECheck hint. #2293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
private void breakTo(Tree target) { | ||
resumeAfter(target, variable2State); | ||
|
||
variable2State = new HashMap< Element, State>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jackpot:
warning: Redundant type arguments in new expression (use diamond operator instead).
java/java.hints/src/org/netbeans/modules/java/hints/introduce/Flow.java
Outdated
Show resolved
Hide resolved
Boolean result = super.scan(tree, p); | ||
Boolean result; | ||
|
||
if (tree != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be beneficial to build the visitSwitchExpression
and visitYield
into baseclasses ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well skimming through the source code I found nothing that would cry for explanation.
…nt. (#2293) * Handling of switch expressions and rule cases in Flow and NPECheck hint. * Using a correct overload if TreeScanner.scan * Fixing FlowTest on JDK 8. * Attempting to improve stability of HideFieldByVarTest. * Using a diamond instead of explicit type parameters.
No description provided.