commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r397124 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java
Date Wed, 26 Apr 2006 07:13:37 GMT
Author: dion
Date: Wed Apr 26 00:13:35 2006
New Revision: 397124

URL: http://svn.apache.org/viewcvs?rev=397124&view=rev
Log:
Checkstyle

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java?rev=397124&r1=397123&r2=397124&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/Introspector.java
Wed Apr 26 00:13:35 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2001,2004 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -50,26 +50,25 @@
  * @author <a href="mailto:paulo.gaspar@krankikom.de">Paulo Gaspar</a>
  * @version $Id$
  */
-public class Introspector extends IntrospectorBase
-{
+public class Introspector extends IntrospectorBase {
     /**
      *  define a public string so that it can be looked for
-     *  if interested
+     *  if interested.
      */
 
     public static final String CACHEDUMP_MSG = 
         "Introspector : detected classloader change. Dumping cache.";
 
     /**
-     *  our engine runtime services
+     *  our engine runtime services.
      */
     private final Log rlog;
 
     /**
-     *  Recieves our RuntimeServices object
+     *  Recieves our RuntimeServices object.
+     *  @param logger a {@link Log}.
      */
-    public Introspector(Log logger)
-    {
+    public Introspector(Log logger) {
         this.rlog = logger;
     }
    
@@ -83,20 +82,16 @@
      *               the parameters
      *
      * @return The desired Method object.
+     * @throws Exception if the superclass does.
      */
-    public Method getMethod(Class c, String name, Object[] params)
-        throws Exception
-    {
+    public Method getMethod(Class c, String name, Object[] params) throws Exception {
         /*
          *  just delegate to the base class
          */
 
-        try
-        {
-            return super.getMethod( c, name, params );
-        }
-        catch( MethodMap.AmbiguousException ae )
-        {
+        try {
+            return super.getMethod(c, name, params);
+        } catch (MethodMap.AmbiguousException ae) {
             /*
              *  whoops.  Ambiguous.  Make a nice log message and return null...
              */
@@ -104,17 +99,17 @@
             StringBuffer msg = new StringBuffer("Introspection Error : Ambiguous method invocation
")
                 .append(name).append("( ");
 
-            for (int i = 0; i < params.length; i++)
-            {
-                if ( i > 0)
+            for (int i = 0; i < params.length; i++) {
+                if (i > 0) {
                     msg.append(", ");
+                }
                 
                 msg.append(params[i].getClass().getName());
             }
             
             msg.append(") for class ").append(c.getName());
             
-            rlog.error( msg.toString() );
+            rlog.error(msg.toString());
         }
 
         return null;
@@ -122,11 +117,10 @@
 
     /**
      * Clears the classmap and classname
-     * caches, and logs that we did so
+     * caches, and logs that we did so.
      */
-    protected void clearCache()
-    {
+    protected void clearCache() {
         super.clearCache();
-        rlog.info( CACHEDUMP_MSG );
+        rlog.info(CACHEDUMP_MSG);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message