Files
openide/plugins/kotlin/j2k/shared/tests/testData/newJ2k/assertStatement/assertNotNull.java
Alexey Belkov 0aba5a4e72 [kotlin] J2K: unignore K2 tests with K2-specific testdata
KTIJ-30693
KTIJ-30760

GitOrigin-RevId: 80dacdc6dcd7667d5b19771eb3ff192c577bd7d9
2024-08-09 19:19:40 +00:00

26 lines
646 B
Java

abstract class C {
String mMemberVariable;
void foo() {
String s1 = f();
assert s1 != null;
String s2 = g();
assert s2 != null : "g should not return null";
String doNotMergeDueToPossibleSideEffects = g();
assert s2.hashCode() == 42;
int h = s2.hashCode();
String s3 = "sss";
assert s3.hashCode() != null;
assert doNotMergeDueToPossibleSideEffects != null;
assert mMemberVariable != null;
String doNotTouchDifferentAssert = f();
assert doNotTouchDifferentAssert == null;
}
abstract String f();
abstract String g();
}