mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
public class Param {
|
||||
private int i;
|
||||
|
||||
public Param(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
public int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
public void setI(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
void foo(Param param) {
|
||||
if (param.getI() == 0) {
|
||||
param.setI(9);
|
||||
}
|
||||
}
|
||||
|
||||
void bar(){
|
||||
foo(new Param(1));
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
void foo(int i) {
|
||||
if (i == 0) {
|
||||
i = 9;
|
||||
}
|
||||
}
|
||||
|
||||
void bar(){
|
||||
foo(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user