diff options
-rw-r--r-- | sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java | 2 | ||||
-rw-r--r-- | sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java b/sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java index 1833fa27eb3..82352b5bc05 100644 --- a/sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java +++ b/sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java @@ -24,7 +24,9 @@ import org.sonar.api.resources.*; /** * @since 2.6 + * @deprecated in 4.2. Only file system is handled by SonarQube, not logical components. */ +@Deprecated public final class JavaClass extends Resource { public static final String SCOPE = Scopes.PROGRAM_UNIT; diff --git a/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java b/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java index 67e3edc5161..06a1abfe947 100644 --- a/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java +++ b/sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java @@ -24,7 +24,9 @@ import org.sonar.api.resources.*; /** * @since 2.6 + * @deprecated in 4.2. Only file system is handled by SonarQube, not logical components. */ +@Deprecated public final class JavaMethod extends Method { public static final String QUALIFIER = Qualifiers.METHOD; |