summaryrefslogtreecommitdiffstats
path: root/chain
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-20 15:03:38 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-20 15:17:33 +0200
commitfd6e26a87aab7dee20520d99dc020a17cad92055 (patch)
tree3fb31b6cc02170f4c429cfea52606a4fb364b803 /chain
parentd3ed2f02c9f0e938469ad3ad7ef0d6e885394563 (diff)
silence warnings
Diffstat (limited to 'chain')
-rw-r--r--chain/src/main/java/com/yahoo/component/chain/Chain.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/chain/src/main/java/com/yahoo/component/chain/Chain.java b/chain/src/main/java/com/yahoo/component/chain/Chain.java
index 4e003c3b41f..b1365948d34 100644
--- a/chain/src/main/java/com/yahoo/component/chain/Chain.java
+++ b/chain/src/main/java/com/yahoo/component/chain/Chain.java
@@ -50,6 +50,7 @@ public class Chain<COMPONENT extends ChainedComponent> {
/** Create a chain directly. This will NOT order the chain by the ordering constraints. */
@SafeVarargs
+ @SuppressWarnings("varargs")
public Chain(ComponentId id, COMPONENT... components) {
this(id, Arrays.<COMPONENT>asList(components));
}
@@ -115,7 +116,7 @@ public class Chain<COMPONENT extends ChainedComponent> {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- Chain chain = (Chain) o;
+ Chain<?> chain = (Chain<?>) o;
if (!componentList.equals(chain.componentList)) return false;
if (!id.equals(chain.id)) return false;