aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src/main/java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/ProjectClasspath.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/component/Component.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/component/Module.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/component/SourceFile.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java2
6 files changed, 6 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ProjectClasspath.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ProjectClasspath.java
index 6af187f6315..f7d55073bc5 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ProjectClasspath.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ProjectClasspath.java
@@ -80,7 +80,7 @@ public class ProjectClasspath implements BatchComponent {
try {
List<File> files = Lists.newArrayList();
if (pom.getCompileClasspathElements() != null) {
- for (String classPathString : (List<String>) pom.getCompileClasspathElements()) {
+ for (String classPathString : pom.getCompileClasspathElements()) {
files.add(new File(classPathString));
}
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/component/Component.java b/sonar-plugin-api/src/main/java/org/sonar/api/component/Component.java
index e68ed4cfa42..098b469a172 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/component/Component.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/component/Component.java
@@ -21,7 +21,7 @@ package org.sonar.api.component;
import javax.annotation.CheckForNull;
-public interface Component<C extends Component> {
+public interface Component {
String key();
/**
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/component/Module.java b/sonar-plugin-api/src/main/java/org/sonar/api/component/Module.java
index 6fe58004867..c8fa4d4f62b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/component/Module.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/component/Module.java
@@ -19,7 +19,7 @@
*/
package org.sonar.api.component;
-public interface Module extends Component<Module> {
+public interface Module extends Component {
String getDescription();
String getBranch();
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java b/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java
index a1cc5af2bad..9f5395c0a02 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/component/Perspective.java
@@ -19,6 +19,6 @@
*/
package org.sonar.api.component;
-public interface Perspective<C extends Component<C>> {
+public interface Perspective<C extends Component> {
C component();
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/component/SourceFile.java b/sonar-plugin-api/src/main/java/org/sonar/api/component/SourceFile.java
index 37347d5f29d..702b817084a 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/component/SourceFile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/component/SourceFile.java
@@ -19,5 +19,5 @@
*/
package org.sonar.api.component;
-public interface SourceFile extends Component<SourceFile> {
+public interface SourceFile extends Component {
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
index 45b4053dbfe..15f8bd4b4cf 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
@@ -133,7 +133,7 @@ public class RulesProfile implements Cloneable {
}
/**
- * @deprecated profile versioning is dropped in 4.4. Always returns -1.
+ * @deprecated profile versioning is dropped in 4.4. Always returns null.
*/
@CheckForNull
@Deprecated