mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 01:11:31 +07:00
GitOrigin-RevId: 2c78a3ea97fe0bbb26de57ecd17ec90e9acb9f91
13 lines
353 B
Java
13 lines
353 B
Java
// "Replace 'final String txt' with casts" "true-preview"
|
|
import java.util.Map;
|
|
|
|
public class WithPreview {
|
|
private static void testIfElseIfFalseIf(Object object) {
|
|
if (!(object instanceof final String <caret>txt)) {
|
|
return;
|
|
} else {
|
|
System.out.println(txt);
|
|
}
|
|
System.out.println(txt);
|
|
}
|
|
} |