rtaneja1 commented on a change in pull request #1081: [NETBEANS-1675]Java Hint
to fix error :different case kinds used in the switch in switch expressions
URL:
https://github.com/apache/incubator-netbeans/pull/1081#discussion_r246701505
##########
File path:
java/java.source.base/src/org/netbeans/modules/java/source/matching/CopyFinder.java
##########
@@ -1786,7 +1787,14 @@ private static Name getSimpleName(Tree t) {
case BLOCK:
return ((BlockTree)
firstLeaf.getParentPath().getLeaf()).getStatements();
case CASE:
- return ((CaseTree)
firstLeaf.getParentPath().getLeaf()).getStatements();
+ CaseTree caseTree = (CaseTree)
firstLeaf.getParentPath().getLeaf();
Review comment:
Requires formatting
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists