From 41bd95f7eacadef4736fdbb0a26bb3ced6da1100 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Tue, 10 Apr 2007 13:14:40 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/filters/TokenFilter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/filters/TokenFilter.java b/src/main/org/apache/tools/ant/filters/TokenFilter.java index 94c92d3e3..81515e2a0 100644 --- a/src/main/org/apache/tools/ant/filters/TokenFilter.java +++ b/src/main/org/apache/tools/ant/filters/TokenFilter.java @@ -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) {