BoxingCaching.java revision 0
829N/A * @compile -source 1.5 BoxingCaching.java
829N/Apublic class BoxingCaching {
829N/A static boolean verifyBooleanCaching() {
return cached;
static boolean verifyByteCaching() {
boolean cached = true;
if (B != results[i]) {
cached = false;
Byte B;
if (B.byteValue() != i) {
cached = false;
return cached;
static boolean verifyCharacterCaching() {
boolean cached = true;
results[i] = (char)i;
Character C = (char)i;
if (C != results[i]) {
cached = false;
Character C;
if (C.charValue() != i) {
cached = false;
return cached;
static boolean verifyIntegerCaching() {
boolean cached = true;
if (I != results[i]) {
cached = false;
Integer I;
if (I.intValue() != i) {
cached = false;
return cached;
static boolean verifyLongCaching() {
boolean cached = true;
if (L != results[i]) {
cached = false;
Integer L;
if (L.longValue() != i) {
cached = false;
return cached;
static boolean verifyShortCaching() {
boolean cached = true;
if (S != results[i]) {
cached = false;
Short S;
if (S.shortValue() != i) {
cached = false;
return cached;
boolean cached = true;
if (!cached)