Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 89898 invoked from network); 26 Apr 2006 07:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 07:14:05 -0000 Received: (qmail 97427 invoked by uid 500); 26 Apr 2006 07:14:01 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 97364 invoked by uid 500); 26 Apr 2006 07:14:01 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 97353 invoked by uid 500); 26 Apr 2006 07:14:01 -0000 Received: (qmail 97349 invoked by uid 99); 26 Apr 2006 07:14:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 00:14:01 -0700 X-ASF-Spam-Status: No, hits=-8.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 26 Apr 2006 00:13:59 -0700 Received: (qmail 89664 invoked by uid 65534); 26 Apr 2006 07:13:37 -0000 Message-ID: <20060426071337.89660.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commons-cvs@jakarta.apache.org From: dion@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Paulo Gaspar * @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