ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r583884 - in /ant/core/trunk/src/main/org/apache/tools/ant: taskdefs/optional/Javah.java types/Resource.java
Date Thu, 11 Oct 2007 17:10:17 GMT
Author: peterreilly
Date: Thu Oct 11 10:10:16 2007
New Revision: 583884

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

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
    ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java?rev=583884&r1=583883&r2=583884&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java Thu Oct 11 10:10:16
2007
@@ -83,7 +83,7 @@
     //private Path extdirs;
     private FacadeTaskHelper facade = null;
     private Vector files = new Vector();
-    
+
     /**
      * No arg constructor.
      */
@@ -137,10 +137,14 @@
         }
     }
 
+    /**
+     * Add a fileset.
+     * @param fs the fileset to add.
+     */
     public void addFileSet(FileSet fs) {
         files.add(fs);
     }
-    
+
     /**
      * Names of the classes to process.
      * @return the array of classes.
@@ -155,18 +159,19 @@
             }
         }
 
-        if(files.size() > 0) {
-            for(Enumeration e = files.elements(); e.hasMoreElements();){
-                FileSet fs = (FileSet)e.nextElement();
-                String[] includedClasses = fs.getDirectoryScanner(getProject()).getIncludedFiles();
-                for(int i = 0; i < includedClasses.length; i++) {
-                    String className = 
-                        includedClasses[i].replace('\\', '.').replace('/', '.').substring(0,includedClasses[i].length()-6);
+        if (files.size() > 0) {
+            for (Enumeration e = files.elements(); e.hasMoreElements();) {
+                FileSet fs = (FileSet) e.nextElement();
+                String[] includedClasses = fs.getDirectoryScanner(
+                    getProject()).getIncludedFiles();
+                for (int i = 0; i < includedClasses.length; i++) {
+                    String className =
+                        includedClasses[i].replace('\\', '.').replace('/', '.')
+                        .substring(0,includedClasses[i].length() - 6);
                     al.add(className);
                 }
             }
         }
-        
         Enumeration e = classes.elements();
         while (e.hasMoreElements()) {
             ClassArgument arg = (ClassArgument) e.nextElement();

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java?rev=583884&r1=583883&r2=583884&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java Thu Oct 11 10:10:16 2007
@@ -174,9 +174,12 @@
     /**
      * Tells the modification time in milliseconds since 01.01.1970 (the "epoch").
      *
-     * @return the modification time, if that is meaningful (e.g. for a file resource which
exists);
-     *         0 if the resource does not exist, to mirror the behavior of {@link java.io.File#lastModified};
-     *         or 0 if the notion of modification time is meaningless for this class of resource
(e.g. an inline string)
+     * @return the modification time, if that is meaningful
+     *            (e.g. for a file resource which exists);
+     *         0 if the resource does not exist, to mirror the behavior
+     *         of {@link java.io.File#lastModified};
+     *         or 0 if the notion of modification time is meaningless for this class
+     *           of resource (e.g. an inline string)
      */
     public long getLastModified() {
         if (isReference()) {



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


Mime
View raw message