Removing debugging output.

This commit is contained in:
briancaruso 2011-11-17 21:53:27 +00:00
parent 9a28e3a448
commit 123215e530

View file

@ -382,21 +382,18 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel {
continue; continue;
// Eliminate methods declared on Object // Eliminate methods declared on Object
// and other unusual places that can cause problems.
Class<?> c = method.getDeclaringClass(); Class<?> c = method.getDeclaringClass();
if (c.equals(java.lang.Object.class) || if (c.equals(java.lang.Object.class) ||
c.equals(java.lang.reflect.Constructor.class) || c.equals(java.lang.reflect.Constructor.class) ||
c.equals(java.lang.reflect.Field.class ) ) c.equals(java.lang.reflect.Field.class ) )
continue; continue;
if( if(
c.getPackage().getName().startsWith("sun.") || c.getPackage().getName().startsWith("sun.") ||
c.getPackage().getName().startsWith("java.lang") || c.getPackage().getName().startsWith("java.lang") ||
c.getPackage().getName().startsWith("java.security") ) c.getPackage().getName().startsWith("java.security") )
continue; continue;
log.error("decalring class of method " + method.getName() + " is " + c.getName());
// Eliminate deprecated methods // Eliminate deprecated methods
if (method.isAnnotationPresent(Deprecated.class)) { if (method.isAnnotationPresent(Deprecated.class)) {