aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-task-projectanalysis/src/main/java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-08-21 14:56:16 -0500
committerSonarTech <sonartech@sonarsource.com>2019-09-24 20:21:15 +0200
commitd53977760baa53c56b53c369a2e027c61a6ec2c2 (patch)
treedf63bf62317f82f49fbc376cfbff7fd8a6861e90 /server/sonar-ce-task-projectanalysis/src/main/java
parent89ab883abdf49d899598608c69359b0139ffb68a (diff)
downloadsonarqube-d53977760baa53c56b53c369a2e027c61a6ec2c2.tar.gz
sonarqube-d53977760baa53c56b53c369a2e027c61a6ec2c2.zip
Improve code quality and test coverage
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/src/main/java')
-rw-r--r--server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java
index f9b0311f7e5..46b46ed41bc 100644
--- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java
+++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java
@@ -89,7 +89,7 @@ public class LoadPeriodsStep implements ComputationStep {
}
}
- private <T> Optional<T> firstPresent(Supplier<Optional<T>>... suppliers) {
+ private static <T> Optional<T> firstPresent(Supplier<Optional<T>>... suppliers) {
for (Supplier<Optional<T>> supplier : suppliers) {
Optional<T> result = supplier.get();
if (result.isPresent()) {