Browse Source

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

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@527130 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 18 years ago
parent
commit
41bd95f7ea
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/main/org/apache/tools/ant/filters/TokenFilter.java

+ 6
- 1
src/main/org/apache/tools/ant/filters/TokenFilter.java View File

@@ -659,7 +659,12 @@ public class TokenFilter extends BaseFilterReader
};
}

/** 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) {


Loading…
Cancel
Save