commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1065231 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java
Date Sun, 30 Jan 2011 08:48:16 GMT
Author: bayard
Date: Sun Jan 30 08:48:16 2011
New Revision: 1065231

URL: http://svn.apache.org/viewvc?rev=1065231&view=rev
Log:
Adding a Java 1.8 as that is talked of nowadays

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java?rev=1065231&r1=1065230&r2=1065231&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/JavaVersion.java Sun
Jan 30 08:48:16 2011
@@ -33,7 +33,8 @@ public enum JavaVersion {
     JAVA_1_4(1.4f, "1.4"), 
     JAVA_1_5(1.5f, "1.5"), 
     JAVA_1_6(1.6f, "1.6"), 
-    JAVA_1_7(1.7f, "1.7");
+    JAVA_1_7(1.7f, "1.7"),
+    JAVA_1_8(1.8f, "1.8");
 
     private float value;
     private String name;
@@ -86,6 +87,9 @@ public enum JavaVersion {
         } else
         if("1.7".equals(nom)) {
             return JAVA_1_7;
+        } else
+        if("1.8".equals(nom)) {
+            return JAVA_1_8;
         } else {
             return null;
         }



Mime
View raw message