aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/phases')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PhasesTimeProfiler.java2
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PostJobsExecutor.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PhasesTimeProfiler.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PhasesTimeProfiler.java
index 9d22f5409f9..e2688dcf468 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PhasesTimeProfiler.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PhasesTimeProfiler.java
@@ -62,7 +62,7 @@ public class PhasesTimeProfiler implements SensorExecutionHandler, SensorsPhaseH
}
}
- private ClassLoader getSensorClassLoader(Sensor sensor) {
+ private static ClassLoader getSensorClassLoader(Sensor sensor) {
if (sensor instanceof SensorWrapper) {
SensorWrapper wrapper = (SensorWrapper) sensor;
return wrapper.wrappedSensor().getClass().getClassLoader();
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PostJobsExecutor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PostJobsExecutor.java
index 881a81df796..de3a57f3a9b 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PostJobsExecutor.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/phases/PostJobsExecutor.java
@@ -19,7 +19,7 @@
*/
package org.sonar.scanner.phases;
-import com.google.common.collect.Lists;
+import java.util.ArrayList;
import java.util.Collection;
import org.apache.commons.lang.StringUtils;
import org.sonar.api.batch.PostJob;
@@ -50,9 +50,9 @@ public class PostJobsExecutor {
public void execute(SensorContext context) {
Collection<PostJob> postJobs = selector.select(PostJob.class, module, true, null);
- eventBus.fireEvent(new PostJobPhaseEvent(Lists.newArrayList(postJobs), true));
+ eventBus.fireEvent(new PostJobPhaseEvent(new ArrayList<>(postJobs), true));
execute(context, postJobs);
- eventBus.fireEvent(new PostJobPhaseEvent(Lists.newArrayList(postJobs), false));
+ eventBus.fireEvent(new PostJobPhaseEvent(new ArrayList<>(postJobs), false));
}
private void execute(SensorContext context, Collection<PostJob> postJobs) {