aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/main/java/net
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-01 23:04:06 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-05 09:54:04 +0200
commitdaf4bbc321839b01f6e9a52ee8b01fa28c30e14b (patch)
tree90a45be70bff89c792ed6118e9f8a3d966e2f11b /sonar-duplications/src/main/java/net
parentc0e818946f33d65e6fae07bc37db2801e92bc906 (diff)
downloadsonarqube-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.java11
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();
}
}