commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1135573 - /commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
Date Tue, 14 Jun 2011 13:46:26 GMT
Author: simonetripodi
Date: Tue Jun 14 13:46:25 2011
New Revision: 1135573

URL: http://svn.apache.org/viewvc?rev=1135573&view=rev
Log:
imported String.format() static method

Modified:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java?rev=1135573&r1=1135572&r2=1135573&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
Tue Jun 14 13:46:25 2011
@@ -19,6 +19,8 @@ package org.apache.commons.meiyo.classvi
  * under the License.
  */
 
+import static java.lang.String.format;
+
 import java.lang.annotation.Annotation;
 import java.lang.reflect.AnnotatedElement;
 
@@ -115,8 +117,7 @@ final class Key
     @Override
     public String toString()
     {
-        return String.format( "Key [annotatedElementType=%s, annotationType=%s]",
-                              annotatedElementType, annotationType );
+        return format( "Key [annotatedElementType=%s, annotationType=%s]", annotatedElementType,
annotationType );
     }
 
 }



Mime
View raw message