src/share/classes/sun/misc/ProxyGenerator.java
Print this page
rev 10203 : 8048874: Replace uses of 'new Byte', 'new Short' and 'new Character' with appropriate alternative across core classes
Reviewed-by: chegar, prappo
Contributed-by: Otavio Santana <otaviojava@java.net>
*** 1883,1893 ****
if (readOnly) {
throw new InternalError(
"late constant pool addition: " + key);
}
short i = addEntry(new ValueEntry(key));
! map.put(key, new Short(i));
return i;
}
}
/**
--- 1883,1893 ----
if (readOnly) {
throw new InternalError(
"late constant pool addition: " + key);
}
short i = addEntry(new ValueEntry(key));
! map.put(key, i);
return i;
}
}
/**
*** 1901,1911 ****
} else {
if (readOnly) {
throw new InternalError("late constant pool addition");
}
short i = addEntry(e);
! map.put(e, new Short(i));
return i;
}
}
/**
--- 1901,1911 ----
} else {
if (readOnly) {
throw new InternalError("late constant pool addition");
}
short i = addEntry(e);
! map.put(e, i);
return i;
}
}
/**