From 3ab193022b286c35bd3d6ef1eaae138e22cc0b16 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 3 Feb 2014 15:20:22 +0100 Subject: [PATCH] SONAR-926 flag classes org.sonar.java.api.JavaClass and JavaMethod as deprecated --- sonar-java-api/src/main/java/org/sonar/java/api/JavaClass.java | 2 ++ sonar-java-api/src/main/java/org/sonar/java/api/JavaMethod.java | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.39.5