aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java8
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java2
2 files changed, 6 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java b/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java
index 57ba6659890..5b4b42b2ac7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/ce/posttask/PostProjectAnalysisTaskTester.java
@@ -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() {
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java
index deb09670730..696b280a078 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ShowWsRequest.java
@@ -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;
}