Specify the types on Tuple.newTuple to make the captures line up

This commit is contained in:
Charlie Groves
2010-12-09 21:53:49 +00:00
parent 63ac28fcef
commit d93db7a0f7
@@ -39,9 +39,8 @@ public class Case<T>
public Case (SQLExpression<?>... exps) public Case (SQLExpression<?>... exps)
{ {
int i = 0; int i = 0;
while (i+1 < exps.length) { for (; i + 1 < exps.length; i += 2) {
_whenExps.add(Tuple.newTuple(exps[i], exps[i+1])); _whenExps.add(Tuple.<SQLExpression<?>, SQLExpression<?>>newTuple(exps[i], exps[i + 1]));
i += 2;
} }
_elseExp = (i < exps.length) ? exps[i] : null; _elseExp = (i < exps.length) ? exps[i] : null;
} }