You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2009/03/14 17:36:17 UTC

svn commit: r754485 - in /commons/proper/lang/trunk/src: java/org/apache/commons/lang/SystemUtils.java test/org/apache/commons/lang/SystemUtilsTest.java

Author: bayard
Date: Sat Mar 14 16:36:17 2009
New Revision: 754485

URL: http://svn.apache.org/viewvc?rev=754485&view=rev
Log:
Removed deprecated getJavaVersion() method from SystemUtils [LANG-438]

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java?rev=754485&r1=754484&r2=754485&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java Sat Mar 14 16:36:17 2009
@@ -1104,23 +1104,6 @@
      *  <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>
-     *
-     * <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>
-     * 
      * <p>Patch releases are not reported.
      * Zero is returned if {@link #JAVA_VERSION_TRIMMED} is <code>null</code>.</p>
      * 

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java?rev=754485&r1=754484&r2=754485&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java Sat Mar 14 16:36:17 2009
@@ -337,10 +337,6 @@
     }
 
     //-----------------------------------------------------------------------
-    public void testDeprecatedJavaVersion() {
-        assertEquals(SystemUtils.JAVA_VERSION_FLOAT, SystemUtils.getJavaVersion(), 0f);
-    }
-
     public void testJavaVersionAsFloat() {
         JAVA_VERSION = null;
         JAVA_VERSION_TRIMMED = getJavaVersionTrimmed();