mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: null checks should not miss final modifiers ( IDEA-55515 )
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
class Test {
|
||||
void foo() {
|
||||
final String str = newMethod();
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
System.out.println(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private String newMethod() {
|
||||
final String str = "";
|
||||
if (str == "") {
|
||||
return;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user