/*
*******************************************************************************
-* Copyright (C) 1996-2011, International Business Machines Corporation and *
+* Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
getInstance(INSTANCE_INVALID_INT_[i]);
errln("invalid ints should produce an exception");
} catch (RuntimeException e) {
- logln("PASS: \"" + INSTANCE_INVALID_INT_[i] +
+ logln("PASS: \"" + Arrays.toString(INSTANCE_INVALID_INT_[i]) +
"\" failed as expected");
}
}
VersionInfo v1 = getInstance(COMPARE_NOT_EQUAL_INT_[i]);
VersionInfo v2 = getInstance(COMPARE_NOT_EQUAL_INT_[i + 1]);
if (v1.compareTo(v2) == 0) {
- errln(COMPARE_NOT_EQUAL_INT_[i] + " should not equal " +
- COMPARE_NOT_EQUAL_INT_[i + 1]);
+ errln(Arrays.toString(COMPARE_NOT_EQUAL_INT_[i]) + " should not equal " +
+ Arrays.toString(COMPARE_NOT_EQUAL_INT_[i + 1]));
}
}
for (int i = 0; i < COMPARE_EQUAL_STRING_.length - 1; i ++) {
/*
**********************************************************************
- * Copyright (c) 2006-2009, International Business Machines
+ * Copyright (c) 2006-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Created on 2006-4-21
if (Arrays.binarySearch(expResTypes, type) >= 0) {
return t;
} else {
- throw new DataModuleFormatError(new UResourceTypeMismatchException("Actual type " + t.getType() + " != expected types " + expResTypes + "."));
+ throw new DataModuleFormatError(new UResourceTypeMismatchException("Actual type " + t.getType()
+ + " != expected types " + Arrays.toString(expResTypes) + "."));
}
}