diff options
author | gjoranv <gv@verizonmedia.com> | 2019-09-09 15:07:05 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2019-09-09 15:07:05 +0200 |
commit | 85f3496fb440b8190eed5c543c27a847657f2399 (patch) | |
tree | a3dbe9536ad52ef1f91e48379556f93a76b9d4da /container-di/src | |
parent | 12cd0e7c82c296a11e5f2e74402bf8865120fd94 (diff) |
Remove findbugs annotations from code and build path.
- jsr305 is needed by guava, which declares it as optional dep.
- Remaining modules with annotations do not affect the container.
Diffstat (limited to 'container-di/src')
3 files changed, 6 insertions, 6 deletions
diff --git a/container-di/src/main/java/com/yahoo/container/bundle/BundleInstantiationSpecification.java b/container-di/src/main/java/com/yahoo/container/bundle/BundleInstantiationSpecification.java index add411051c2..440a687a671 100644 --- a/container-di/src/main/java/com/yahoo/container/bundle/BundleInstantiationSpecification.java +++ b/container-di/src/main/java/com/yahoo/container/bundle/BundleInstantiationSpecification.java @@ -3,15 +3,15 @@ package com.yahoo.container.bundle; import com.yahoo.component.ComponentId; import com.yahoo.component.ComponentSpecification; -import net.jcip.annotations.Immutable; /** * Specifies how a component should be instantiated from a bundle. * + * Immutable + * * @author Tony Vaagenes */ -@Immutable public final class BundleInstantiationSpecification { public final ComponentId id; diff --git a/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java b/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java index cdd886b4672..f55d68ad708 100644 --- a/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java +++ b/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java @@ -17,7 +17,6 @@ import com.yahoo.container.di.componentgraph.cycle.CycleFinder; import com.yahoo.container.di.componentgraph.cycle.Graph; import com.yahoo.log.LogLevel; import com.yahoo.vespa.config.ConfigKey; -import net.jcip.annotations.NotThreadSafe; import java.lang.annotation.Annotation; import java.lang.reflect.ParameterizedType; @@ -42,8 +41,9 @@ import static com.yahoo.container.di.componentgraph.core.Exceptions.removeStackT * @author Tony Vaagenes * @author gjoranv * @author ollivir + * + * Not thread safe. */ -@NotThreadSafe public class ComponentGraph { private static final Logger log = Logger.getLogger(ComponentGraph.class.getName()); diff --git a/container-di/src/main/java/com/yahoo/osgi/provider/model/ComponentModel.java b/container-di/src/main/java/com/yahoo/osgi/provider/model/ComponentModel.java index 2b56f6ebbca..8c501963db3 100644 --- a/container-di/src/main/java/com/yahoo/osgi/provider/model/ComponentModel.java +++ b/container-di/src/main/java/com/yahoo/osgi/provider/model/ComponentModel.java @@ -4,14 +4,14 @@ package com.yahoo.osgi.provider.model; import com.yahoo.component.ComponentId; import com.yahoo.component.ComponentSpecification; import com.yahoo.container.bundle.BundleInstantiationSpecification; -import net.jcip.annotations.Immutable; /** * Describes how a component should be created. * + * Immutable + * * @author gjoranv */ -@Immutable public class ComponentModel { public final BundleInstantiationSpecification bundleInstantiationSpec; |