public static synchronized void suppressConstructor ( Class < ? > ... classes ) { for ( Class < ? > clazz : classes ) { Class < ? > tempClass = clazz ; while ( tempClass != Object . class ) { suppressConstructor ( tempClass , false ) ; tempClass = tempClass . getSuperclass ( ) ; } } }
Suppress all constructors in the given class and it s super classes .