langtools/src/share/classes/com/sun/tools/javac/comp/Infer.java
changeset 21488 4a69e26aa999
parent 20249 93f8eae31092
child 22163 3651128c74eb
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Infer.java	Tue Oct 22 10:08:49 2013 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Infer.java	Tue Oct 22 13:54:49 2013 +0100
@@ -1768,9 +1768,11 @@
                 public Type apply(Type t) {
                     if (t.hasTag(TYPEVAR)) {
                         TypeVar tv = (TypeVar)t;
-                        return tv.isCaptured() ?
-                                new CapturedUndetVar((CapturedType)tv, types) :
-                                new UndetVar(tv, types);
+                        if (tv.isCaptured()) {
+                            return new CapturedUndetVar((CapturedType)tv, types);
+                        } else {
+                            return new UndetVar(tv, types);
+                        }
                     } else {
                         return t.map(this);
                     }