diff options
Diffstat (limited to 'sonar-duplications/src')
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java | 11 |
1 files changed, 9 insertions, 2 deletions
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<TokenEntry> { @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(); } } |