diff options
author | aclement <aclement> | 2006-07-03 14:24:16 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-03 14:24:16 +0000 |
commit | f6e70ba1a3e362455931eb84d74199003943c60d (patch) | |
tree | 5f9b4b63f0c237d16e2239cd2be0b53131d32c10 /util/src | |
parent | 2f3eb4fc8e8fb9b76f82eb08f7bcd04d732a620c (diff) | |
download | aspectj-f6e70ba1a3e362455931eb84d74199003943c60d.tar.gz aspectj-f6e70ba1a3e362455931eb84d74199003943c60d.zip |
testcode for new handle provider (pr141730): helper method
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/org/aspectj/util/CharOperation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/CharOperation.java b/util/src/org/aspectj/util/CharOperation.java index f9dd0da9e..1fe7ac493 100644 --- a/util/src/org/aspectj/util/CharOperation.java +++ b/util/src/org/aspectj/util/CharOperation.java @@ -48,6 +48,16 @@ public class CharOperation { /** * Taken from org.aspectj.org.eclipse.jdt.core.compiler.CharOperation */ + public static final boolean contains(char character, char[] array) { + for (int i = array.length; --i >= 0;) + if (array[i] == character) + return true; + return false; + } + + /** + * Taken from org.aspectj.org.eclipse.jdt.core.compiler.CharOperation + */ public static final int indexOf(char toBeFound, char[] array) { for (int i = 0; i < array.length; i++) if (toBeFound == array[i]) |