KT-8110 J2K: Don't convert "==" to "===" for enum classes

#KT-8110 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-23 17:36:59 +03:00
parent 767e21db76
commit 4c80db9249
3 changed files with 13 additions and 2 deletions
+6 -1
View File
@@ -20,8 +20,12 @@ class B {
final class BB extends B {}
enum EE {
A, B, C
}
class X {
void foo(I i1, I i2, String s1, String s2, C c1, C c2, int i, O o1, O o2, E e1, E e2, BB bb1, BB bb2, int[] arr1, int[] arr2) {
void foo(I i1, I i2, String s1, String s2, C c1, C c2, int i, O o1, O o2, E e1, E e2, BB bb1, BB bb2, int[] arr1, int[] arr2, EE ee1, EE ee2) {
if (i1 == i2) return;
if (s1 == s2) return;
if (c1 == c2) return;
@@ -32,6 +36,7 @@ class X {
if (e1 == e2) return;
if (bb1 == bb2) return;
if (arr1 == arr2) return;
if (ee1 == ee2 || ee1 == null) return;
if (s1 != s2) return;
if (c1 != c2) return;