1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2014-11-17 18:12:53 -08:00
parent 73a74679fe
commit a3962a9bd8

View file

@ -187,7 +187,7 @@ public class BaseTestCase extends TestCase {
} }
}; };
final CCorePlugin corePlugin = CCorePlugin.getDefault(); final CCorePlugin corePlugin = CCorePlugin.getDefault();
if (corePlugin != null) { //Iif we don't run a JUnit Plugin Test if (corePlugin != null) { // Iff we don't run as a JUnit Plugin Test.
corePlugin.getLog().addLogListener(logListener); corePlugin.getLog().addLogListener(logListener);
} }
@ -200,8 +200,8 @@ public class BaseTestCase extends TestCase {
} }
if (statusLog.size() != fExpectedLoggedNonOK) { if (statusLog.size() != fExpectedLoggedNonOK) {
StringBuffer msg= new StringBuffer("Expected number (" + fExpectedLoggedNonOK + ") of "); StringBuilder msg= new StringBuilder("Expected number (" + fExpectedLoggedNonOK + ") of ");
msg.append("non-OK status objects in log differs from actual (" + statusLog.size() + ").\n"); msg.append("Non-OK status objects in log differs from actual (" + statusLog.size() + ").\n");
Throwable cause= null; Throwable cause= null;
if (!statusLog.isEmpty()) { if (!statusLog.isEmpty()) {
synchronized (statusLog) { synchronized (statusLog) {