commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1091086 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java
Date Mon, 11 Apr 2011 14:20:43 GMT
Author: ggregory
Date: Mon Apr 11 14:20:43 2011
New Revision: 1091086

URL: http://svn.apache.org/viewvc?rev=1091086&view=rev
Log:
Use Java 5 getSimpleName API.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java?rev=1091086&r1=1091085&r2=1091086&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Pair.java Mon Apr 11
14:20:43 2011
@@ -91,7 +91,7 @@ public abstract class Pair<L, R> impleme
      */
     @Override
     public String toString() {
-        StringBuilder builder = new StringBuilder(ClassUtils.getShortClassName(this, null));
+        StringBuilder builder = new StringBuilder(this.getClass().getSimpleName());
         builder.append("(");
         builder.append(getLeftElement());
         builder.append(",");



Mime
View raw message