diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-05-13 13:52:21 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-05-27 12:16:02 +0200 |
commit | b1ebe7217250cb9f4fc767b0df9f8d626c14f513 (patch) | |
tree | b94fe4730ed00e540d8bfdcdbf223458d88eb5f8 /sonar-core | |
parent | 982931e48eafa9df8b5181729ae40bccd6ea0e9e (diff) | |
download | sonarqube-b1ebe7217250cb9f4fc767b0df9f8d626c14f513.tar.gz sonarqube-b1ebe7217250cb9f4fc767b0df9f8d626c14f513.zip |
add module for Batch WS
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/component/Module.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/component/Module.java b/sonar-core/src/main/java/org/sonar/core/component/Module.java index 6662ebdd24c..25a015e55e6 100644 --- a/sonar-core/src/main/java/org/sonar/core/component/Module.java +++ b/sonar-core/src/main/java/org/sonar/core/component/Module.java @@ -19,8 +19,6 @@ */ package org.sonar.core.component; -import java.util.Collection; -import javax.annotation.Nullable; import org.sonar.core.platform.ComponentContainer; import static com.google.common.base.Preconditions.checkNotNull; @@ -38,12 +36,6 @@ public abstract class Module { protected abstract void configureModule(); - protected void add(@Nullable Object object, boolean singleton) { - if (object != null) { - container.addComponent(object, singleton); - } - } - protected <T> T getComponentByType(Class<T> tClass) { return container.getComponentByType(tClass); } @@ -56,8 +48,4 @@ public abstract class Module { } } - protected void addAll(Collection<?> objects) { - add(objects.toArray(new Object[objects.size()])); - } - } |