]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 12 Sep 2017 07:44:10 +0000 (09:44 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 12 Sep 2017 07:53:42 +0000 (09:53 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java
sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java

index 57ba6659890f4fdf8359210fe3c011d990f30a16..5b4b42b2ac7a8557c7abb0b20cf3193c463f11b9 100644 (file)
@@ -148,7 +148,7 @@ public class PostProjectAnalysisTaskTester {
   }
 
   /**
-      * @since 6.1
+   * @since 6.1
    */
   public PostProjectAnalysisTaskTester withScannerContext(ScannerContext scannerContext) {
     this.scannerContext = requireNonNull(scannerContext, SCANNER_CONTEXT_CAN_NOT_BE_NULL);
@@ -166,9 +166,9 @@ public class PostProjectAnalysisTaskTester {
   }
 
   public void execute() {
-    this.ceTask = requireNonNull(ceTask, CE_TASK_CAN_NOT_BE_NULL);
-    this.project = requireNonNull(project, PROJECT_CAN_NOT_BE_NULL);
-    this.date = requireNonNull(date, DATE_CAN_NOT_BE_NULL);
+    requireNonNull(ceTask, CE_TASK_CAN_NOT_BE_NULL);
+    requireNonNull(project, PROJECT_CAN_NOT_BE_NULL);
+    requireNonNull(date, DATE_CAN_NOT_BE_NULL);
 
     this.underTest.finished(
       new PostProjectAnalysisTask.ProjectAnalysis() {
index deb096707307dc12e05d6487cff1c85904d09fd0..696b280a078bc18e615a0926aa316ba3aa09e25d 100644 (file)
@@ -28,6 +28,7 @@ public class ShowWsRequest {
   @CheckForNull
   private String key;
 
+  @CheckForNull
   public String getId() {
     return id;
   }
@@ -37,6 +38,7 @@ public class ShowWsRequest {
     return this;
   }
 
+  @CheckForNull
   public String getKey() {
     return key;
   }