mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
cleanup: unnecessary cast fixed
This commit is contained in:
parent
fb9dff069c
commit
54f917f440
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ public class FailingTest extends TestCase {
|
|||
TestResult r = new TestResult();
|
||||
test.run( r );
|
||||
if (r.failureCount() == 1) {
|
||||
TestFailure failure= (TestFailure) r.failures().nextElement();
|
||||
TestFailure failure= r.failures().nextElement();
|
||||
String msg= failure.exceptionMessage();
|
||||
if (msg != null && msg.startsWith("Method \"" + test.getName() + "\"")) {
|
||||
result.addFailure(this, new AssertionFailedError(msg));
|
||||
|
|
|
@ -197,7 +197,7 @@ public class BaseTestCase extends TestCase {
|
|||
TestResult r = new TestResult();
|
||||
super.run(r);
|
||||
if (r.failureCount() == 1) {
|
||||
TestFailure failure= (TestFailure) r.failures().nextElement();
|
||||
TestFailure failure= r.failures().nextElement();
|
||||
String msg= failure.exceptionMessage();
|
||||
if (msg != null && msg.startsWith("Method \"" + getName() + "\"")) {
|
||||
result.addFailure(this, new AssertionFailedError(msg));
|
||||
|
|
Loading…
Add table
Reference in a new issue