diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-04-05 15:54:26 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-04-05 15:54:26 -0400 |
commit | 6ca7671157c5f82374f521c0ee5623d7b723230b (patch) | |
tree | a17cde86ee51bb5f72b23fc0479ee964d20daa22 /sangria-contextual/src | |
parent | 2bbab11d671ba452771fdf5ab8ad33225cc67397 (diff) | |
download | sangria-6ca7671157c5f82374f521c0ee5623d7b723230b.tar.xz |
sangria-contextual: Get rid of some unchecked warnings.
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) { |