summaryrefslogtreecommitdiffstats
path: root/container-di
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2019-09-09 15:07:05 +0200
committergjoranv <gv@verizonmedia.com>2019-09-09 15:07:05 +0200
commit85f3496fb440b8190eed5c543c27a847657f2399 (patch)
treea3dbe9536ad52ef1f91e48379556f93a76b9d4da /container-di
parent12cd0e7c82c296a11e5f2e74402bf8865120fd94 (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')
-rw-r--r--container-di/pom.xml8
-rw-r--r--container-di/src/main/java/com/yahoo/container/bundle/BundleInstantiationSpecification.java4
-rw-r--r--container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java4
-rw-r--r--container-di/src/main/java/com/yahoo/osgi/provider/model/ComponentModel.java4
4 files changed, 6 insertions, 14 deletions
diff --git a/container-di/pom.xml b/container-di/pom.xml
index de1b34cbcad..8e89910e247 100644
--- a/container-di/pom.xml
+++ b/container-di/pom.xml
@@ -16,14 +16,6 @@
<packaging>container-plugin</packaging>
<dependencies>
<dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- </dependency>
- <dependency>
<groupId>com.yahoo.vespa</groupId>
<artifactId>annotations</artifactId>
<version>${project.version}</version>
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;