We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f829e6c commit 435d485Copy full SHA for 435d485
1 file changed
src/test/java/com/crossoverjie/reference/ReferenceTest.java
@@ -31,10 +31,16 @@ private void modifyBasic(int aa) {
31
@Test
32
public void testReference01(){
33
Car car1 = new Car("benz");
34
- modifyCar(car1);
+ modifyCar1(car1);
35
System.out.println(String.format("Final modify car1==%s", car1));
36
}
37
38
+ private void modifyCar1(Car car){
39
+ System.out.println(String.format("Before modify1 car==%s", car));
40
+ car.name = "bwm";
41
+ System.out.println(String.format("After modify1 car==%s", car));
42
+ }
43
+
44
45
public void testReference02(){
46
0 commit comments