mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
prefer local variables to methods (IDEA-64703)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
class SomeComponent extends javax.swing.JPanel {
|
||||
@Nullable
|
||||
public String getSelectedItemString() {
|
||||
final Object value = getList().getSelectedValue();
|
||||
return val<caret>x
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user