]> source.dussan.org Git - aspectj.git/commitdiff
eclipse: unnecessary cast
authoraclement <aclement>
Sat, 23 Aug 2008 04:13:59 +0000 (04:13 +0000)
committeraclement <aclement>
Sat, 23 Aug 2008 04:13:59 +0000 (04:13 +0000)
ajde.core/testsrc/org/aspectj/ajde/core/AjdeCoreTestCase.java

index 26e3cb82dc2137f30b172caa2666c46c863e3f55..80a98aa18d0471a3bdc3a7a109722bf76b12e2ba 100644 (file)
@@ -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);
                }
        }