Removed deprecated getJavaVersion() method from SystemUtils [LANG-438]

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-03-14 16:36:17 +00:00
parent 69717be43d
commit 084cfeed41
2 changed files with 0 additions and 21 deletions

View File

@ -1095,23 +1095,6 @@ public class SystemUtils {
}
//-----------------------------------------------------------------------
/**
* <p>Gets the Java version number as a <code>float</code>.</p>
*
* <p>Example return values:</p>
* <ul>
* <li><code>1.2f</code> for JDK 1.2
* <li><code>1.31f</code> for JDK 1.3.1
* </ul>
*
* @return the version, for example 1.31f for JDK 1.3.1
* @deprecated Use {@link #JAVA_VERSION_FLOAT} instead.
* Method will be removed in Commons Lang 3.0.
*/
public static float getJavaVersion() {
return JAVA_VERSION_FLOAT;
}
/**
* <p>Gets the Java version number as a <code>float</code>.</p>
*

View File

@ -337,10 +337,6 @@ public class SystemUtilsTest extends TestCase {
}
//-----------------------------------------------------------------------
public void testDeprecatedJavaVersion() {
assertEquals(SystemUtils.JAVA_VERSION_FLOAT, SystemUtils.getJavaVersion(), 0f);
}
public void testJavaVersionAsFloat() {
JAVA_VERSION = null;
JAVA_VERSION_TRIMMED = getJavaVersionTrimmed();