rtaneja1 commented on a change in pull request #600: [NETBEANS-862] Added 
auto-complete support for var keyword in JDK-11 Lambda Parameters
URL: https://github.com/apache/incubator-netbeans/pull/600#discussion_r199065698
 
 

 ##########
 File path: 
java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
 ##########
 @@ -1903,6 +1909,11 @@ private void insideLambdaExpression(Env env) throws 
IOException {
                         addPrimitiveTypeKeywords(env);
                         addKeyword(env, FINAL_KEYWORD, SPACE, false);
                     }
+                    //Assuming first parameter to be var type if position for 
the parameter type is not found.
+                    else if (!let.getParameters().isEmpty() && 
let.getParameters().get(0).getType() != null )
 
 Review comment:
   Please fix formatting. Should we add check for var param type?

----------------------------------------------------------------
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

Reply via email to