From f6e70ba1a3e362455931eb84d74199003943c60d Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Jul 2006 14:24:16 +0000 Subject: [PATCH] testcode for new handle provider (pr141730): helper method --- util/src/org/aspectj/util/CharOperation.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- 2.39.5