You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/08/07 08:44:28 UTC

[GitHub] arusinha commented on a change in pull request #650: [NETBEANS-1075]-Adding var hints for enhanced-for-loop

arusinha commented on a change in pull request #650: [NETBEANS-1075]-Adding var hints for enhanced-for-loop
URL: https://github.com/apache/incubator-netbeans/pull/650#discussion_r208114639
 
 

 ##########
 File path: java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertVarToExplicitType.java
 ##########
 @@ -119,15 +148,21 @@ protected void performRewrite(TransformationContext tc) throws Exception {
     private static boolean isLocalVarType(HintContext ctx) {
 
         CompilationInfo info = ctx.getInfo();
-        
+
         if (info.getSourceVersion().compareTo(SourceVersion.RELEASE_9) < 1) {
             return false;
-        }        
+        }
 
         TreePath treePath = ctx.getPath();
-
+        EnhancedForLoopTree efl = null;
+        TypeMirror expressionType = null;
+        if (treePath.getLeaf() instanceof EnhancedForLoopTree) {
 
 Review comment:
   Plz use == operator
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists