mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2026-08-22 19:53:28 +08:00
a[I] 改为 a[i]
This commit is contained in:
@@ -53,7 +53,7 @@ static List<Integer> intArrayAsList(int[] a) {
|
||||
|
||||
@Override
|
||||
public Integer set(int i, Integer val) {
|
||||
int oldVal = a[I];
|
||||
int oldVal = a[i];
|
||||
a[i] = val; // Auto-unboxing
|
||||
return oldVal; // Autoboxing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user