comparison graal/com.oracle.max.base/src/com/sun/max/collect/IntHashMap.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
comparison
equal deleted inserted replaced
4141:04d21be7a24f 4142:bc8527f3071c
167 167
168 public List<T> toList() { 168 public List<T> toList() {
169 if (values == null) { 169 if (values == null) {
170 return Collections.emptyList(); 170 return Collections.emptyList();
171 } 171 }
172 final List<T> list = new ArrayList<T>(numberOfValues); 172 final List<T> list = new ArrayList<>(numberOfValues);
173 for (int i = 0; i < values.length; i++) { 173 for (int i = 0; i < values.length; i++) {
174 final T value = values[i]; 174 final T value = values[i];
175 if (value != null) { 175 if (value != null) {
176 list.add(value); 176 list.add(value);
177 } 177 }