Report "use of non-const Kotlin property" also on Java case labels
#KT-25536 Fixed
This commit is contained in:
+12
-1
@@ -9,5 +9,16 @@ public class JavaUser {
|
||||
|
||||
// Safe
|
||||
@Ann(s = KotlinPropertiesKt.constantString)
|
||||
public void baz() {}
|
||||
public void baz(String z) {
|
||||
switch (z) {
|
||||
case KotlinPropertiesKt.constantString: // Safe
|
||||
break;
|
||||
|
||||
case KotlinPropertiesKt.importantString: // Dangerous
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user