From: Tim P <ti...@us...> - 2008-03-19 12:35:10
|
Update of /cvsroot/webmacro/webmacro/src/org/webmacro/engine In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31815/src/org/webmacro/engine Modified Files: IntrospectionUtils.java Log Message: Checkstyle: make final Index: IntrospectionUtils.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/src/org/webmacro/engine/IntrospectionUtils.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IntrospectionUtils.java 12 Jun 2003 00:47:45 -0000 1.3 --- IntrospectionUtils.java 19 Mar 2008 12:35:00 -0000 1.4 *************** *** 27,39 **** * @since May 25, 2002 */ ! public class IntrospectionUtils { ! /** Creates a new instance of IntrospectionUtils */ private IntrospectionUtils () { } ! final static boolean matches (Class[] sig, Class[] args) { if (args.length != sig.length) --- 27,39 ---- * @since May 25, 2002 */ ! public final class IntrospectionUtils { ! /** Deny instantiation */ private IntrospectionUtils () { } ! static boolean matches (Class[] sig, Class[] args) { if (args.length != sig.length) *************** *** 69,78 **** catch (NullPointerException e) { ! return false; // XXX: block nulls, isAssign... throws this } return true; } ! final static public Class[] createTypesFromArgs (Object[] args) { Class[] types = new Class[args.length]; --- 69,78 ---- catch (NullPointerException e) { ! return false; // XXX: block nulls, isAssignableFrom throws this } return true; } ! static public Class[] createTypesFromArgs (Object[] args) { Class[] types = new Class[args.length]; *************** *** 91,95 **** } ! /** attempt to instantiate a class with the supplied args */ static public Object instantiate (Class c, Object[] args) throws Exception --- 91,95 ---- } ! /** Attempt to instantiate a class with the supplied args. */ static public Object instantiate (Class c, Object[] args) throws Exception *************** *** 103,107 **** { // try each constructor with the right number of args, ! // untill one works or all have failed java.lang.reflect.Constructor[] cons = c.getConstructors(); for (int i = 0; i < cons.length; i++) --- 103,107 ---- { // try each constructor with the right number of args, ! // until one works or all have failed java.lang.reflect.Constructor[] cons = c.getConstructors(); for (int i = 0; i < cons.length; i++) *************** *** 117,121 **** catch (Exception e) { ! } } --- 117,121 ---- catch (Exception e) { ! // ignore this failure, try the next one } } |