ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r557220 - /ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java
Date Wed, 18 Jul 2007 10:46:54 GMT
Author: peterreilly
Date: Wed Jul 18 03:46:50 2007
New Revision: 557220

URL: http://svn.apache.org/viewvc?view=rev&rev=557220
Log:
checkstyle

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java?view=diff&rev=557220&r1=557219&r2=557220
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Diagnostics.java Wed Jul 18 03:46:50 2007
@@ -49,6 +49,9 @@
  */
 public final class Diagnostics {
 
+    /** the version number for java 1.5 returned from JavaEnvUtils */
+    private static final int JAVA_1_5_NUMBER = 15;
+
     /**
      * value for which a difference between clock and temp file time triggers
      * a warning.
@@ -412,7 +415,8 @@
         Throwable error = null;
         try {
             Class which = Class.forName("org.apache.env.Which");
-            Method method = which.getMethod("main", new Class[] { String[].class });
+            Method method = which.getMethod(
+                "main", new Class[] {String[].class});
             method.invoke(null, new Object[]{new String[]{}});
         } catch (ClassNotFoundException e) {
             out.println("Not available.");
@@ -609,7 +613,7 @@
         printProperty(out, ProxySetup.SOCKS_PROXY_USERNAME);
         printProperty(out, ProxySetup.SOCKS_PROXY_PASSWORD);
 
-        if (JavaEnvUtils.getJavaVersionNumber() < 15) {
+        if (JavaEnvUtils.getJavaVersionNumber() < JAVA_1_5_NUMBER) {
             return;
         }
         printProperty(out, ProxySetup.USE_SYSTEM_PROXIES);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message