"{Hour:N}{Month:N}{Fractional_Second:N} {Month:N}{Day_Of_Year:N}{Year:N}",
"{Hour:N}{Month:N}{Fractional_Second:N} {Month:N}{Day_Of_Year:N}{Year:N}"};
for(int i=0; i<cases.length; i++){
- try{
- if(!dt.getFields(cases[i]).equals(results[i]));
- } catch(Exception e){
+ if(!dt.getFields(cases[i]).equals(results[i])) {
errln("DateTimePatternGenerator.getFields(String) did not " +
"not return an expected result when passing " + cases[i] +
". Got " + dt.getFields(cases[i]) + " but expected " +
/**
*******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and
+* Copyright (C) 1996-2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
UCharacter.codePointCount(reg_text, invalid_startCases[i], 1);
errln("UCharacter.codePointCount was suppose to return an exception " +
"but got " + UCharacter.codePointCount(reg_text, invalid_startCases[i], 1) +
- ". The following passed parameters were Text: " + reg_text.toString() + ", Start: " +
+ ". The following passed parameters were Text: " + String.valueOf(reg_text) + ", Start: " +
invalid_startCases[i] + ", Limit: " + 1 + ".");
} catch(Exception e){
}