From daf4bbc321839b01f6e9a52ee8b01fa28c30e14b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 1 Jun 2015 23:04:06 +0200 Subject: SONAR-6370 remove dependency of sonar-duplications on commons-lang --- .../src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sonar-duplications/src') diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java index 0a18f175a79..2f9d2eb3212 100644 --- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java +++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java @@ -25,7 +25,6 @@ package net.sourceforge.pmd.cpd; import java.util.HashMap; import java.util.Map; -import org.apache.commons.lang.builder.ToStringBuilder; /** * @since 2.2 @@ -137,6 +136,14 @@ public class TokenEntry implements Comparable { @Override public String toString() { - return ToStringBuilder.reflectionToString(this); + StringBuilder sb = new StringBuilder("TokenEntry{"); + sb.append("tokenSrcID='").append(tokenSrcID).append('\''); + sb.append(", beginLine=").append(beginLine); + sb.append(", index=").append(index); + sb.append(", identifier=").append(identifier); + sb.append(", hashCode=").append(hashCode); + sb.append(", value='").append(value).append('\''); + sb.append('}'); + return sb.toString(); } } -- cgit v1.2.3