]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 23 May 2019 08:11:26 +0000 (10:11 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 23 May 2019 18:21:10 +0000 (20:21 +0200)
sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java

index da2587ca9dfb46dd813d455413b3dd5c1d2dc473..e11c377b80905bd71c9765161ca547bdb7992d04 100644 (file)
@@ -36,9 +36,9 @@ import org.picocontainer.MutablePicoContainer;
 import org.picocontainer.PicoContainer;
 import org.picocontainer.behaviors.OptInCaching;
 import org.picocontainer.monitors.NullComponentMonitor;
-import org.sonar.api.scanner.ScannerSide;
 import org.sonar.api.ce.ComputeEngineSide;
 import org.sonar.api.config.PropertyDefinitions;
+import org.sonar.api.scanner.ScannerSide;
 import org.sonar.api.server.ServerSide;
 
 import static com.google.common.collect.ImmutableList.copyOf;
@@ -52,8 +52,8 @@ public class ComponentContainer implements ContainerPopulator.Container {
   public static final int COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER = 2;
 
   private static final class ExtendedDefaultPicoContainer extends DefaultPicoContainer {
-    private ExtendedDefaultPicoContainer(ComponentFactory componentFactory, LifecycleStrategy lifecycleStrategy, PicoContainer parent,
-      ComponentMonitor componentMonitor) {
+    private ExtendedDefaultPicoContainer(ComponentFactory componentFactory, LifecycleStrategy lifecycleStrategy,
+      @Nullable PicoContainer parent, ComponentMonitor componentMonitor) {
       super(componentFactory, lifecycleStrategy, parent, componentMonitor);
     }