From: aclement Date: Sat, 23 Aug 2008 04:13:59 +0000 (+0000) Subject: eclipse: unnecessary cast X-Git-Tag: V162DEV_M1~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b98efbd8ec7ccfb390381d7962a4d83d9292317d;p=aspectj.git eclipse: unnecessary cast --- 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); } }