diff options
Diffstat (limited to 'sangria-contextual/src')
-rw-r--r-- | sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java | 2 |
1 files changed, 2 insertions, 0 deletions
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 <B, V> V acceptExtensionVisitor(BindingTargetVisitor<B, V> visitor, ProviderInstanceBinding<? extends B> 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 <B, V> V acceptExtensionVisitor(BindingTargetVisitor<B, V> visitor, ProviderInstanceBinding<? extends B> binding) { if (visitor instanceof ContextSensitiveBindingVisitor) { |