aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-06 17:39:48 +0000
committerGodin <mandrikov@gmail.com>2010-12-06 17:39:48 +0000
commit6b3d13a08f5240d86ee3cdd5e0f955bf51cdc431 (patch)
treeb84486efbe41e5fbe439ebdeb939c79a0acfd96f
parent0dccd3182e1c7c0220659e48936eac8edcc40826 (diff)
downloadsonarqube-6b3d13a08f5240d86ee3cdd5e0f955bf51cdc431.tar.gz
sonarqube-6b3d13a08f5240d86ee3cdd5e0f955bf51cdc431.zip
SONAR-2011: Deprecate Project.getGroupId() and Project.getArtifactId()
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java42
1 files changed, 28 insertions, 14 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java
index 476fc5091dc..e4f14394dfa 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java
@@ -126,6 +126,9 @@ public class Project extends Resource {
return branch;
}
+ /**
+ * For internal use only.
+ */
public Project setBranch(String branch) {
this.branch = branch;
return this;
@@ -158,16 +161,25 @@ public class Project extends Resource {
return description;
}
+ /**
+ * For internal use only.
+ */
public Project setName(String name) {
this.name = name;
return this;
}
+ /**
+ * For internal use only.
+ */
public Project setDescription(String description) {
this.description = description;
return this;
}
+ /**
+ * For internal use only.
+ */
public Project setPackaging(String packaging) {
this.packaging = packaging;
return this;
@@ -221,20 +233,6 @@ public class Project extends Resource {
}
/**
- * Used for Maven projects
- */
- public String getGroupId() {
- return pom.getGroupId();
- }
-
- /**
- * Used for Maven projects
- */
- public String getArtifactId() {
- return pom.getArtifactId();
- }
-
- /**
* @return the project language
*/
public Language getLanguage() {
@@ -378,6 +376,22 @@ public class Project extends Resource {
}
/**
+ * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2011
+ */
+ @Deprecated
+ public String getGroupId() {
+ return pom.getGroupId();
+ }
+
+ /**
+ * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2011
+ */
+ @Deprecated
+ public String getArtifactId() {
+ return pom.getArtifactId();
+ }
+
+ /**
* @return the underlying Maven project
* @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 ,
* MavenProject can be retrieved as an IoC dependency