From a5c12366c3abe412b35682d1f406544dac36711b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 4 Feb 2014 17:59:59 +0100 Subject: [PATCH] SONAR-926 move org.sonar.api.resources.Method to sonar-deprecated --- .../src/main/java/org/sonar/api/resources/Method.java | 4 ++++ .../src/test/java/org/sonar/api/resources/MethodTest.java | 0 sonar-java-api/pom.xml | 4 ++++ .../src/main/java/org/sonar/api/resources/Language.java | 2 ++ 4 files changed, 10 insertions(+) rename {sonar-plugin-api => sonar-deprecated}/src/main/java/org/sonar/api/resources/Method.java (95%) rename {sonar-plugin-api => sonar-deprecated}/src/test/java/org/sonar/api/resources/MethodTest.java (100%) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Method.java b/sonar-deprecated/src/main/java/org/sonar/api/resources/Method.java similarity index 95% rename from sonar-plugin-api/src/main/java/org/sonar/api/resources/Method.java rename to sonar-deprecated/src/main/java/org/sonar/api/resources/Method.java index d615873f08c..90b82792130 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Method.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/resources/Method.java @@ -19,6 +19,10 @@ */ package org.sonar.api.resources; +/** + * @deprecated in 4.2. Only file system components are managed by SQ core (files/directories). + */ +@Deprecated public class Method extends Resource { public static final String SCOPE = Scopes.BLOCK_UNIT; diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/resources/MethodTest.java b/sonar-deprecated/src/test/java/org/sonar/api/resources/MethodTest.java similarity index 100% rename from sonar-plugin-api/src/test/java/org/sonar/api/resources/MethodTest.java rename to sonar-deprecated/src/test/java/org/sonar/api/resources/MethodTest.java diff --git a/sonar-java-api/pom.xml b/sonar-java-api/pom.xml index ff02cbaaeb2..0e0e16dfdd8 100644 --- a/sonar-java-api/pom.xml +++ b/sonar-java-api/pom.xml @@ -13,6 +13,10 @@ org.codehaus.sonar sonar-plugin-api + + org.codehaus.sonar + sonar-deprecated + diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Language.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Language.java index 54c6e68ddda..0a55c474719 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Language.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Language.java @@ -25,6 +25,8 @@ import org.sonar.api.batch.InstantiationStrategy; /** * The extension point to define a new language + *

+ * Instantiation strategy changed to PER_BATCH in version 4.2. * * @since 1.10 */ -- 2.39.5