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;
}
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);
}
}