ICU-8509 fixed warning message

X-SVN-Rev: 29962
This commit is contained in:
Mark Davis 2011-05-02 22:12:49 +00:00
parent 1594d0eff0
commit 8f19d6e019

View file

@ -1444,6 +1444,7 @@ public class TestFmwk extends AbstractTestLog {
private void msg(String message, int level, boolean incCount,
boolean newln) {
int oldLevel = level;
if (level == WARN && (!warnings && !nodata)){
level = ERR;
}
@ -1462,7 +1463,7 @@ public class TestFmwk extends AbstractTestLog {
if (!suppressIndent) {
indent(indentLevel + 1);
final String[] MSGNAMES = {"", "Warning: ", "Error: "};
log.print(MSGNAMES[level]);
log.print(MSGNAMES[oldLevel]);
}
log.print(message);