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 | |
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')
-rw-r--r-- | sonar-duplications/pom.xml | 4 | ||||
-rw-r--r-- | sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sonar-duplications/pom.xml b/sonar-duplications/pom.xml index 56dc0fec83b..9e6ec34f5b6 100644 --- a/sonar-duplications/pom.xml +++ b/sonar-duplications/pom.xml @@ -30,10 +30,6 @@ <artifactId>jsr305</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - </dependency> <!-- unit tests --> <dependency> 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(); } } |