in core/src/main/java/org/apache/commons/proxy2/impl/AbstractSubclassingProxyFactory.java [62:76]
private static boolean hasSuitableDefaultConstructor(Class<?> superclass)
{
final Constructor<?>[] declaredConstructors = superclass.getDeclaredConstructors();
for (int i = 0; i < declaredConstructors.length; i++)
{
Constructor<?> constructor = declaredConstructors[i];
if (constructor.getParameterTypes().length == 0
&& (Modifier.isPublic(constructor.getModifiers()) || Modifier.isProtected(constructor
.getModifiers())))
{
return true;
}
}
return false;
}