]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 25 Sep 2014 10:23:30 +0000 (12:23 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 25 Sep 2014 10:24:23 +0000 (12:24 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/db/AnalysisReportDao.java
sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java
sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportMapper.java
sonar-core/src/main/java/org/sonar/core/computation/package-info.java

index f22b172f8eae9c590d91d0ac9fa2bfede2ef6326..2edd7402f0d97aa6030c98d1a95c1bc5c46a4ef6 100644 (file)
 package org.sonar.server.computation.db;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
 import org.sonar.api.utils.System2;
 import org.sonar.core.computation.db.AnalysisReportDto;
 import org.sonar.core.computation.db.AnalysisReportMapper;
-import org.sonar.core.issue.db.IssueDto;
-import org.sonar.core.issue.db.IssueMapper;
 import org.sonar.core.persistence.DaoComponent;
 import org.sonar.core.persistence.DbSession;
 import org.sonar.server.db.BaseDao;
-import org.sonar.server.search.IndexDefinition;
 
 import java.util.Date;
 import java.util.Map;
index 7af44d41e5c58abc96d41b56537bf809abfbc169..25a244379d93e0a00ded25788347683f0db10cd7 100644 (file)
@@ -28,50 +28,49 @@ import javax.annotation.Nullable;
  */
 public class AnalysisReportDto extends Dto<String> {
 
-    private Long id;
-    private String projectKey;
-    private String status;
-    private String data;
+  private Long id;
+  private String projectKey;
+  private String status;
+  private String data;
 
-    public String getProjectKey() {
-        return projectKey;
-    }
+  public String getProjectKey() {
+    return projectKey;
+  }
 
-    public AnalysisReportDto setProjectKey(String projectKey) {
-      this.projectKey = projectKey;
-      return this;
-    }
+  public AnalysisReportDto setProjectKey(String projectKey) {
+    this.projectKey = projectKey;
+    return this;
+  }
 
-    public String getStatus() {
-        return status;
-    }
+  public String getStatus() {
+    return status;
+  }
 
-    public AnalysisReportDto setStatus(String status) {
-      this.status = status;
-      return this;
-    }
+  public AnalysisReportDto setStatus(String status) {
+    this.status = status;
+    return this;
+  }
 
-    public String getData() {
-        return data;
-    }
+  public String getData() {
+    return data;
+  }
 
-    public AnalysisReportDto setData(@Nullable String data) {
-      this.data = data;
-      return this;
-    }
+  public AnalysisReportDto setData(@Nullable String data) {
+    this.data = data;
+    return this;
+  }
 
+  @Override
+  public String getKey() {
+    return getProjectKey();
+  }
 
-    @Override
-    public String getKey() {
-        return getProjectKey();
-    }
+  public Long getId() {
+    return id;
+  }
 
-    public Long getId() {
-        return id;
-    }
-
-    public AnalysisReportDto setId(Long id) {
-      this.id = id;
-      return this;
-    }
+  public AnalysisReportDto setId(Long id) {
+    this.id = id;
+    return this;
+  }
 }
index 8f5983676c1f957f604848ccdf72dddf956bcfb1..0d6af52b8bcfd518e0ce883b9948efe53c6f0d0c 100644 (file)
@@ -23,5 +23,5 @@ package org.sonar.core.computation.db;
  * since 5.0
  */
 public interface AnalysisReportMapper {
-    void insert(AnalysisReportDto report);
+  void insert(AnalysisReportDto report);
 }
index 70ca84ceba5f8523b15e102ddef71e3bafba3564..218db23b3fbb7edcd07daa5b9fdd9754ce4b3b8b 100644 (file)
@@ -21,4 +21,4 @@
 @ParametersAreNonnullByDefault
 package org.sonar.core.computation;
 
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;