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/07/03 11:05:15 UTC

[GitHub] arusinha commented on a change in pull request #600: [NETBEANS-862] Added auto-complete support for var keyword in JDK-11 Lambda Parameters

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

 ##########
 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:
   formatting issue fixed in last commit. Also first condition check was redundant , is removed now

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