From: aclement Date: Mon, 3 Jul 2006 14:24:16 +0000 (+0000) Subject: testcode for new handle provider (pr141730): helper method X-Git-Tag: PRE_PIPELINE~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6e70ba1a3e362455931eb84d74199003943c60d;p=aspectj.git testcode for new handle provider (pr141730): helper method --- 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 @@ -45,6 +45,16 @@ public class CharOperation { return -1; } + /** + * 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 */