From 6ca7671157c5f82374f521c0ee5623d7b723230b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 5 Apr 2014 15:54:26 -0400 Subject: sangria-contextual: Get rid of some unchecked warnings. --- .../java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sangria-contextual/src/main') diff --git a/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java b/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java index f398f71..ec2d7a7 100644 --- a/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java +++ b/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java @@ -207,6 +207,7 @@ public class ContextSensitiveBinder { return provider.get(); } + @SuppressWarnings("unchecked") // The real type of B must be T @Override public V acceptExtensionVisitor(BindingTargetVisitor visitor, ProviderInstanceBinding binding) { if (visitor instanceof ContextSensitiveBindingVisitor) { @@ -261,6 +262,7 @@ public class ContextSensitiveBinder { return instance; } + @SuppressWarnings("unchecked") // The real type of B must be T @Override public V acceptExtensionVisitor(BindingTargetVisitor visitor, ProviderInstanceBinding binding) { if (visitor instanceof ContextSensitiveBindingVisitor) { -- cgit v1.2.3