diff options
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbol.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbol.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbol.java index 8f071278505..8fe4b83529f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbol.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/internal/DefaultSymbol.java @@ -27,20 +27,14 @@ import java.io.Serializable; public class DefaultSymbol implements Symbol, org.sonar.api.source.Symbol, Serializable { - private final String componentKey; private final int declarationStartOffset; private final int declarationEndOffset; - public DefaultSymbol(String componentKey, int startOffset, int endOffset) { - this.componentKey = componentKey; + public DefaultSymbol(int startOffset, int endOffset) { this.declarationStartOffset = startOffset; this.declarationEndOffset = endOffset; } - public String componentKey() { - return componentKey; - } - @Override public int getDeclarationStartOffset() { return declarationStartOffset; @@ -59,7 +53,6 @@ public class DefaultSymbol implements Symbol, org.sonar.api.source.Symbol, Seria @Override public String toString() { return Objects.toStringHelper("Symbol") - .add("component", componentKey) .add("offset", String.format("%d-%d", declarationStartOffset, declarationEndOffset)) .toString(); } |