YutSean commented on a change in pull request #3784:
URL: https://github.com/apache/hbase/pull/3784#discussion_r736047488



##########
File path: hbase-common/src/main/java/org/apache/hadoop/hbase/util/JVM.java
##########
@@ -60,6 +60,9 @@
 
   private static final String JVMVersion = System.getProperty("java.version");
 
+  private static final Float JREVersion =
+    Float.parseFloat(System.getProperty("java.specification.version"));

Review comment:
       The above JVMVersion is a String like "1.8.0_302", which is not easy to 
be changed to a numeric variable. 
System.getProperty("java.specification.version") will only return String like 
"1", "8", "9", "10", "11", which can be easily parsed to a Float. 




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


Reply via email to