Use Java 5 getSimpleName API.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aaadcb2b54
commit
0734a04ca7
|
@ -91,7 +91,7 @@ public abstract class Pair<L, R> implements Serializable, Map.Entry<L, R> {
|
|||
*/
|
||||
@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(",");
|
||||
|
|
Loading…
Reference in New Issue