Adding a Java 1.8 as that is talked of nowadays

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1065231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-01-30 08:48:16 +00:00
parent f0df931ba0
commit 8ae1df8b87
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}