prefer local variables to methods (IDEA-64703)

This commit is contained in:
peter
2011-02-09 16:17:00 +01:00
parent 2efc3fa640
commit 6a1666584d
4 changed files with 18 additions and 6 deletions
@@ -0,0 +1,8 @@
class SomeComponent extends javax.swing.JPanel {
@Nullable
public String getSelectedItemString() {
final Object value = getList().getSelectedValue();
return val<caret>x
}
}