mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce parameter: fix getter call
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
public class R {
|
||||
private static int ourInt;
|
||||
|
||||
public static int getOurInt() {
|
||||
return ourInt;
|
||||
}
|
||||
|
||||
public static void doSmth(final int anObject) {
|
||||
System.out.println(anObject);
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void foo() {
|
||||
R.doSmth(R.getOurInt());
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public class R {
|
||||
private static int ourInt;
|
||||
|
||||
public static int getOurInt() {
|
||||
return ourInt;
|
||||
}
|
||||
|
||||
public static void doSmth() {
|
||||
System.out.println(<selection>ourInt</selection>);
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void foo() {
|
||||
R.doSmth();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user