From: Yoshito Umaoka Date: Mon, 30 Jun 2014 16:54:21 +0000 (+0000) Subject: ICU-10945 Test log might be emitted through AbstractTestLog, which was missed in... X-Git-Tag: milestone-59-0-1~1823 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ad6bfe9912212187622c0268b030d70cb8fc3ec;p=icu ICU-10945 Test log might be emitted through AbstractTestLog, which was missed in the previous change. X-SVN-Rev: 35966 --- diff --git a/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java b/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java index 54ecd9a6bfa..657207e81db 100644 --- a/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java +++ b/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java @@ -1964,7 +1964,8 @@ public class TestFmwk extends AbstractTestLog { // Walk up the stack to the first call site outside this file StackTraceElement[] st = new Throwable().getStackTrace(); for (int i = 0; i < st.length; ++i) { - if (!"TestFmwk.java".equals(st[i].getFileName())) { + String source = st[i].getFileName(); + if (!source.equals("TestFmwk.java") && !source.equals("AbstractTestLog.java")) { return "(" + st[i].getFileName() + ":" + st[i].getLineNumber() + ") "; } }