mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
GitOrigin-RevId: 2c78a3ea97fe0bbb26de57ecd17ec90e9acb9f91
15 lines
428 B
Java
15 lines
428 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 String)) {
|
|
return;
|
|
} else {
|
|
final String txt = (String) object;
|
|
System.out.println(txt);
|
|
}
|
|
final String txt = (String) object;
|
|
System.out.println(txt);
|
|
}
|
|
} |