diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/di')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java b/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java index bf7366cc60f..e5a66fea8d1 100644 --- a/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java +++ b/container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java @@ -1,7 +1,6 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.di.componentgraph.core; -import com.google.inject.Inject; import com.google.inject.Key; import com.yahoo.collections.Pair; import com.yahoo.component.AbstractComponent; @@ -280,7 +279,8 @@ public class ComponentNode extends Node { Constructor<?> annotated = null; for (Constructor<?> ctor : publicConstructors) { - Annotation annotation = ctor.getAnnotation(Inject.class); + Annotation annotation = ctor.getAnnotation(com.google.inject.Inject.class); + if (annotation == null) annotation = ctor.getAnnotation(com.yahoo.component.annotation.Inject.class); if (annotation != null) { if (annotated == null) { annotated = ctor; |