Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 40313 invoked from network); 14 Mar 2009 16:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2009 16:36:40 -0000 Received: (qmail 8422 invoked by uid 500); 14 Mar 2009 16:36:39 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 8369 invoked by uid 500); 14 Mar 2009 16:36:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 8360 invoked by uid 99); 14 Mar 2009 16:36:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 09:36:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 16:36:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 157322388975; Sat, 14 Mar 2009 16:36:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r754485 - in /commons/proper/lang/trunk/src: java/org/apache/commons/lang/SystemUtils.java test/org/apache/commons/lang/SystemUtilsTest.java Date: Sat, 14 Mar 2009 16:36:17 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090314163618.157322388975@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ *
  • 1.31f for JDK 1.3.1 * * - * @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; - } - - /** - *

    Gets the Java version number as a float.

    - * - *

    Example return values:

    - *
      - *
    • 1.2f for JDK 1.2 - *
    • 1.31f for JDK 1.3.1 - *
    - * *

    Patch releases are not reported. * Zero is returned if {@link #JAVA_VERSION_TRIMMED} is null.

    * 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();