src/share/classes/com/sun/tools/javac/code/Types.java

changeset 1901
db2c539819dd
parent 1869
5c548a8542b8
child 1902
fae8f309ff80
equal deleted inserted replaced
1900:328896931b98 1901:db2c539819dd
2862 public Type visitArrayType(ArrayType t, Void ignored) { 2862 public Type visitArrayType(ArrayType t, Void ignored) {
2863 Type elemtype = subst(t.elemtype); 2863 Type elemtype = subst(t.elemtype);
2864 if (elemtype == t.elemtype) 2864 if (elemtype == t.elemtype)
2865 return t; 2865 return t;
2866 else 2866 else
2867 return new ArrayType(upperBound(elemtype), t.tsym); 2867 return new ArrayType(elemtype, t.tsym);
2868 } 2868 }
2869 2869
2870 @Override 2870 @Override
2871 public Type visitForAll(ForAll t, Void ignored) { 2871 public Type visitForAll(ForAll t, Void ignored) {
2872 if (Type.containsAny(to, t.tvars)) { 2872 if (Type.containsAny(to, t.tvars)) {

mercurial