aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-12-08 11:52:48 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-12-08 11:52:48 +0100
commit67d960d6a47a82a91c68ad1b150b11de17768a9e (patch)
tree9587f4be3f5d55a8486a82b99026e053208772a1
parentc9863df6828342adab79de3b26553a932c308518 (diff)
downloadsonarqube-67d960d6a47a82a91c68ad1b150b11de17768a9e.tar.gz
sonarqube-67d960d6a47a82a91c68ad1b150b11de17768a9e.zip
Fix some quality flaws
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/dependency/internal/DefaultDependency.java1
2 files changed, 1 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java
index 68e24d97bae..f63f94f8115 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingResult.java
@@ -98,8 +98,7 @@ class IssueTrackingResult {
private Integer lineNotNull(IssueDto i) {
Integer line = i.getLine();
- Integer lineNotNull = line != null ? line : 0;
- return lineNotNull;
+ return line != null ? line : 0;
}
void setMatch(DefaultIssue issue, IssueDto matching) {
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/dependency/internal/DefaultDependency.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/dependency/internal/DefaultDependency.java
index 9915ab48e92..c7ab2fcc997 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/dependency/internal/DefaultDependency.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/dependency/internal/DefaultDependency.java
@@ -34,7 +34,6 @@ public class DefaultDependency extends DefaultStorable implements Dependency {
private InputFile from;
private InputFile to;
private int weight = 1;
- private boolean saved = false;
public DefaultDependency() {
super(null);