From a106bc784bf4df6aee6c3e2e50016d04343131ed Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 19 Sep 2016 10:50:08 +0200 Subject: [PATCH] Deprecate newReference() method accepting global offsets as parameter. --- .../main/java/org/sonar/api/batch/sensor/symbol/NewSymbol.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/NewSymbol.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/NewSymbol.java index 06c2ba8529d..6714c527d02 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/NewSymbol.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/symbol/NewSymbol.java @@ -32,7 +32,9 @@ public interface NewSymbol { * Register a new symbol reference. * @param startOffset Starting position in file for the declaration of this symbol. Beginning of a file starts with offset '0'. * @param endOffset End position in file for this symbol declaration. + * @deprecated since 6.1 Only supported to ease migration from old API. Please prefer other {@code newReference()} methods. */ + @Deprecated NewSymbol newReference(int startOffset, int endOffset); /** -- 2.39.5