diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-01 23:04:06 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-05 09:54:04 +0200 |
commit | daf4bbc321839b01f6e9a52ee8b01fa28c30e14b (patch) | |
tree | 90a45be70bff89c792ed6118e9f8a3d966e2f11b /sonar-duplications/src/main/java/net | |
parent | c0e818946f33d65e6fae07bc37db2801e92bc906 (diff) | |
download | sonarqube-daf4bbc321839b01f6e9a52ee8b01fa28c30e14b.tar.gz sonarqube-daf4bbc321839b01f6e9a52ee8b01fa28c30e14b.zip |
SONAR-6370 remove dependency of sonar-duplications on commons-lang
Diffstat (limited to 'sonar-duplications/src/main/java/net')
-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(); } } |