mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
local variables should be preferred over factory methods no matter the name end matching degree
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ public class AnotherTestClass {
|
||||
test(getnu<caret>);
|
||||
}
|
||||
|
||||
private static void test(int i, int j) {
|
||||
private static void test(int i) {
|
||||
}
|
||||
|
||||
public static NumberProvider getNumProvider() {
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
String myFoo;
|
||||
String myBar;
|
||||
|
||||
String getFoo() {
|
||||
return my<caret>
|
||||
}
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public class Aaaaaaa {
|
||||
void foo(ActionEvent e) {
|
||||
bar(<caret>);
|
||||
}
|
||||
|
||||
void bar(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ActionEvent {
|
||||
static ActionEvent createEvent() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user