From b98efbd8ec7ccfb390381d7962a4d83d9292317d Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 23 Aug 2008 04:13:59 +0000 Subject: [PATCH] eclipse: unnecessary cast --- ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java b/ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java index 26e3cb82d..80a98aa18 100644 --- a/ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java +++ b/ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java @@ -132,7 +132,7 @@ public class AjdeCoreTestCase extends TestCase { public boolean checkFor(String what) { List ll = ((TestMessageHandler)compiler.getMessageHandler()).getMessages(); for (Iterator iter = ll.iterator(); iter.hasNext();) { - Object element = (Object) iter.next(); + Object element = iter.next(); if (element.toString().indexOf(what) != -1) return true; } @@ -142,7 +142,7 @@ public class AjdeCoreTestCase extends TestCase { public void dumpTaskData() { List ll = ((TestMessageHandler)compiler.getMessageHandler()).getMessages(); for (Iterator iter = ll.iterator(); iter.hasNext();) { - Object element = (Object) iter.next(); + Object element = iter.next(); System.out.println("RecordedMessage>"+element); } } -- 2.39.5