summaryrefslogtreecommitdiffstats
path: root/sangria-contextual/src/main
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-04-05 15:54:26 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-04-05 15:54:26 -0400
commit6ca7671157c5f82374f521c0ee5623d7b723230b (patch)
treea17cde86ee51bb5f72b23fc0479ee964d20daa22 /sangria-contextual/src/main
parent2bbab11d671ba452771fdf5ab8ad33225cc67397 (diff)
downloadsangria-6ca7671157c5f82374f521c0ee5623d7b723230b.tar.xz
sangria-contextual: Get rid of some unchecked warnings.
Diffstat (limited to 'sangria-contextual/src/main')
-rw-r--r--sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBinder.java2
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) {