ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r527130 - /ant/core/trunk/src/main/org/apache/tools/ant/filters/TokenFilter.java
Date Tue, 10 Apr 2007 13:14:41 GMT
Author: stevel
Date: Tue Apr 10 06:14:40 2007
New Revision: 527130

URL: http://svn.apache.org/viewvc?view=rev&rev=527130
Log:
adding javadocs. It seems to me that this code could be replaced by deleteChars.indexOf(c)>=0,
delegating the loop to the string class itself

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/filters/TokenFilter.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/filters/TokenFilter.java?view=diff&rev=527130&r1=527129&r2=527130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/filters/TokenFilter.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/filters/TokenFilter.java Tue Apr 10 06:14:40
2007
@@ -659,7 +659,12 @@
             };
         }
 
-        /** check if the character c is to be deleted */
+        /**
+         *  check if the character c is to be deleted
+         *
+         * @param c char to test
+         * @return true if the supplied char is in the list to be stripped.
+         */
         private boolean isDeleteCharacter(char c) {
             for (int d = 0; d < deleteChars.length(); ++d) {
                 if (deleteChars.charAt(d) ==  c) {



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


Mime
View raw message