01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.modules.cglib_2_1_3.util;
06:
07: import java.lang.reflect.Method;
08: import java.util.Collection;
09: import java.util.Iterator;
10:
11: public class FilterTCMethods {
12: public static void filterTCMethods(Collection collection) {
13: for (Iterator i = collection.iterator(); i.hasNext();) {
14: Method m = (Method) i.next();
15: if (m.getName().startsWith("__tc_")) {
16: i.remove();
17: }
18: }
19: }
20: }
|