Use ternary expression.
This commit is contained in:
parent
07b78ca38d
commit
38285a15f5
|
@ -303,10 +303,7 @@ public enum JavaVersion {
|
|||
*/
|
||||
private static float maxVersion() {
|
||||
final float v = toFloatVersion(System.getProperty("java.specification.version", "99.0"));
|
||||
if (v > 0) {
|
||||
return v;
|
||||
}
|
||||
return 99f;
|
||||
return v > 0 ? v : 99f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue