diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-11-28 17:11:21 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-11-28 17:59:35 +0100 |
commit | 0646b637664ac6018983cf4030398c692a50db24 (patch) | |
tree | 3b226c2f5600cc6c13095104aad8eed3b4192c5a /sonar-plugin-api | |
parent | 4253a180020a37877574d6c27e2e42311a428d62 (diff) | |
download | sonarqube-0646b637664ac6018983cf4030398c692a50db24.tar.gz sonarqube-0646b637664ac6018983cf4030398c692a50db24.zip |
SONAR-5867 Add symbol references data into file_sources table
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(); } |