Skip to content

Commit

Permalink
[jOOQ#5395] Fix covariance and contravariance on various Converter AP…
Browse files Browse the repository at this point in the history
…I usages
  • Loading branch information
lukaseder committed Jul 5, 2016
1 parent be3cd52 commit b5e87c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jOOQ/src/main/java/org/jooq/Converters.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,21 @@ public static <T, U> Converter<T, U> of(Converter<T, U> converter) {
/**
* Chain two converters.
*/
public static <T, X1, U> Converter<T, U> of(Converter<T, X1> c1, Converter<X1, U> c2) {
public static <T, X1, U> Converter<T, U> of(Converter<T, ? extends X1> c1, Converter<? super X1, U> c2) {
return new Converters(c1, c2);
}

/**
* Chain three converters.
*/
public static <T, X1, X2, U> Converter<T, U> of(Converter<T, X1> c1, Converter<X1, X2> c2, Converter<X2, U> c3) {
public static <T, X1, X2, U> Converter<T, U> of(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, U> c3) {
return new Converters(c1, c2, c3);
}

/**
* Chain four converters.
*/
public static <T, X1, X2, X3, U> Converter<T, U> of(Converter<T, X1> c1, Converter<X1, X2> c2, Converter<X2, X3> c3, Converter<X3, U> c4) {
public static <T, X1, X2, X3, U> Converter<T, U> of(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, ? extends X3> c3, Converter<? super X3, U> c4) {
return new Converters(c1, c2, c3, c4);
}

Expand Down

0 comments on commit b5e87c6

Please sign in to comment.