mbien commented on code in PR #9213:
URL: https://github.com/apache/netbeans/pull/9213#discussion_r2825572701
##########
java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/util/JPDAUtils.java:
##########
@@ -43,25 +43,10 @@
* @author Jan Jancura
*/
public class JPDAUtils {
- private static final String JAVA_VERSION =
System.getProperty("java.version");
/**
* <code>true</code> when the current JDK version is 1.8.0 update 40, or
newer.
*/
- public static final boolean IS_JDK_180_40 =
!JAVA_VERSION.startsWith("1.8.0") || // we know that it's 1.8.0 at least
- getVersionUpdate(JAVA_VERSION)
>= 40;
-
-
- private static int getVersionUpdate(String javaVersion) {
- if (javaVersion.length() < 7) {
- return 0;
- }
- String update = javaVersion.substring(6);
- try {
- return Integer.parseInt(update);
- } catch (NumberFormatException nfex) {
- return 0;
- }
- }
+ public static final boolean IS_JDK_180_40 = true;
Review Comment:
todo: deprecate
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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