Lines 89-94
Link Here
|
89 |
} |
89 |
} |
90 |
boolean areTypesEqual(TypeBinding one, TypeBinding two) { |
90 |
boolean areTypesEqual(TypeBinding one, TypeBinding two) { |
91 |
if (one == two) return true; |
91 |
if (one == two) return true; |
|
|
92 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=329584 |
93 |
switch(one.kind()) { |
94 |
case Binding.TYPE: |
95 |
switch (two.kind()) { |
96 |
case Binding.PARAMETERIZED_TYPE: |
97 |
case Binding.RAW_TYPE: |
98 |
if (one == two.erasure()) |
99 |
return true; |
100 |
} |
101 |
break; |
102 |
case Binding.RAW_TYPE: |
103 |
case Binding.PARAMETERIZED_TYPE: |
104 |
switch(two.kind()) { |
105 |
case Binding.TYPE: |
106 |
if (one.erasure() == two) |
107 |
return true; |
108 |
} |
109 |
} |
92 |
|
110 |
|
93 |
// need to consider X<?> and X<? extends Object> as the same 'type' |
111 |
// need to consider X<?> and X<? extends Object> as the same 'type' |
94 |
if (one.isParameterizedType() && two.isParameterizedType()) |
112 |
if (one.isParameterizedType() && two.isParameterizedType()) |