mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-8509 fixed warning message
X-SVN-Rev: 29962
This commit is contained in:
parent
1594d0eff0
commit
8f19d6e019
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue