commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1204398 - /commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java
Date Mon, 21 Nov 2011 08:44:30 GMT
Author: simonetripodi
Date: Mon Nov 21 08:44:30 2011
New Revision: 1204398

URL: http://svn.apache.org/viewvc?rev=1204398&view=rev
Log:
code polishing

Modified:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java?rev=1204398&r1=1204397&r2=1204398&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classpath/filter/And.java
Mon Nov 21 08:44:30 2011
@@ -19,6 +19,8 @@ package org.apache.commons.meiyo.classpa
  * under the License.
  */
 
+import static java.lang.String.format;
+
 /**
  * Implementation of the logic AND between filters, return true if all the given filters
return true.
  */
@@ -41,13 +43,13 @@ public final class And
      */
     public boolean matches( Class<?> clazz )
     {
-        return this.a.matches( clazz ) && this.b.matches( clazz );
+        return a.matches( clazz ) && b.matches( clazz );
     }
 
     @Override
     public String toString()
     {
-        return String.format( "and(%s, %s)", this.a, this.b );
+        return format( "and(%s, %s)", a, b );
     }
 
 }



Mime
View raw message