changeset 11131 | 27747ee5a62a |
parent 5506 | 202f599c92aa |
child 14342 | 8435a30053c1 |
11130:c7093e306a34 | 11131:27747ee5a62a |
---|---|
50 oa[0] = ob; |
50 oa[0] = ob; |
51 } |
51 } |
52 |
52 |
53 public V forName(N name) { |
53 public V forName(N name) { |
54 if (oa == null) { |
54 if (oa == null) { |
55 oa = (V[])new Object[size]; |
55 @SuppressWarnings("unchecked") |
56 V[] temp = (V[])new Object[size]; |
|
57 oa = temp; |
|
56 } else { |
58 } else { |
57 for (int i = 0; i < oa.length; i++) { |
59 for (int i = 0; i < oa.length; i++) { |
58 V ob = oa[i]; |
60 V ob = oa[i]; |
59 if (ob == null) |
61 if (ob == null) |
60 continue; |
62 continue; |