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/03/16 08:19:25 UTC

[GitHub] JaroslavTulach commented on a change in pull request #457: [NETBEANS 470] Var shows as keyword in jdk8, 9

JaroslavTulach commented on a change in pull request #457: [NETBEANS 470] Var shows as keyword in jdk8, 9
URL: https://github.com/apache/incubator-netbeans/pull/457#discussion_r175021196
 
 

 ##########
 File path: java.lexer/src/org/netbeans/lib/java/lexer/JavaLexer.java
 ##########
 @@ -1297,6 +1306,25 @@ private int translateSurrogates(int c) {
             JavaTokenId.LINE_COMMENT, JavaTokenId.WHITESPACE
     );
 
+    private Integer getVersionAsInt(String version) {
+        Integer ver = null;
+        if (version != null) {
+            try {
 
 Review comment:
   There is [SpecificationVersion](http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/SpecificationVersion.html#SpecificationVersion-java.lang.String-) which you might fine useful in this situation.

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