summaryrefslogtreecommitdiffstats
path: root/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-04-03 10:48:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-04-03 10:58:47 -0400
commitebd97d704c85166d8325ba0599466ffbe46f3823 (patch)
treea6c8866b109c84f36e35b46ae7ade13b51461c5b /sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java
parent00d80a2b4414d2930e90df39d83d8887b13f6ae5 (diff)
downloadsangria-ebd97d704c85166d8325ba0599466ffbe46f3823.tar.xz
contextual: Weaken generics on toContextSensitiveProvider() to match toProvider().
Diffstat (limited to 'sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java')
-rw-r--r--sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java b/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java
index dc2b60b..b5797de 100644
--- a/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java
+++ b/sangria-contextual/src/main/java/com/tavianator/sangria/contextual/ContextSensitiveBindingBuilder.java
@@ -31,20 +31,20 @@ public interface ContextSensitiveBindingBuilder<T> {
/**
* See the EDSL examples {@link ContextSensitiveBinder here}.
*/
- void toContextSensitiveProvider(Class<? extends ContextSensitiveProvider<T>> type);
+ void toContextSensitiveProvider(Class<? extends ContextSensitiveProvider<? extends T>> type);
/**
* See the EDSL examples {@link ContextSensitiveBinder here}.
*/
- void toContextSensitiveProvider(TypeLiteral<? extends ContextSensitiveProvider<T>> type);
+ void toContextSensitiveProvider(TypeLiteral<? extends ContextSensitiveProvider<? extends T>> type);
/**
* See the EDSL examples {@link ContextSensitiveBinder here}.
*/
- void toContextSensitiveProvider(Key<? extends ContextSensitiveProvider<T>> type);
+ void toContextSensitiveProvider(Key<? extends ContextSensitiveProvider<? extends T>> key);
/**
* See the EDSL examples {@link ContextSensitiveBinder here}.
*/
- void toContextSensitiveProvider(ContextSensitiveProvider<T> provider);
+ void toContextSensitiveProvider(ContextSensitiveProvider<? extends T> provider);
}