mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remove unnecessary downcasting
GitOrigin-RevId: b91110977db6e5b08d9f4aaffa8496d305d698e2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2d9369d983
commit
970dc0fe32
@@ -1,24 +0,0 @@
|
||||
|
||||
class Test {
|
||||
|
||||
private boolean test(String s) {
|
||||
if (s == null) return false;
|
||||
s = s.trim();
|
||||
if (s.isEmpty()) return false;
|
||||
int i;
|
||||
try {
|
||||
i = Integer.parseInt(s);
|
||||
}
|
||||
catch (NumberFormatException ex) {
|
||||
return false;
|
||||
}
|
||||
return i > 0;
|
||||
}
|
||||
|
||||
String use(String[] list) {
|
||||
for(String str : list) {
|
||||
if (!<caret>test(str)) break;
|
||||
System.out.println("Ok string: "+str);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user