]> source.dussan.org Git - aspectj.git/commitdiff
testcode for new handle provider (pr141730): helper method
authoraclement <aclement>
Mon, 3 Jul 2006 14:24:16 +0000 (14:24 +0000)
committeraclement <aclement>
Mon, 3 Jul 2006 14:24:16 +0000 (14:24 +0000)
util/src/org/aspectj/util/CharOperation.java

index f9dd0da9e1414997ecf53aada91b5fd58f71e493..1fe7ac49376fca05ceb9ba40d72ef6dc2efeba72 100644 (file)
@@ -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
         */