summaryrefslogtreecommitdiffstats
path: root/testing-client/testsrc
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-11-07 13:04:55 -0800
committerAndy Clement <aclement@pivotal.io>2016-11-07 13:04:55 -0800
commitde34df77ea7f7372894cf1e2352766118a798e98 (patch)
treee0d75970e19c61af1ba204810ee1ebebbd1e8166 /testing-client/testsrc
parent64c97807a20105644f604fe9b5263acdb63bd41d (diff)
downloadaspectj-de34df77ea7f7372894cf1e2352766118a798e98.tar.gz
aspectj-de34df77ea7f7372894cf1e2352766118a798e98.zip
Upgraded to new JDT compiler - neon.1 and a bit
Diffstat (limited to 'testing-client/testsrc')
-rw-r--r--testing-client/testsrc/org/aspectj/testing/TesterTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/testing-client/testsrc/org/aspectj/testing/TesterTest.java b/testing-client/testsrc/org/aspectj/testing/TesterTest.java
index c2fceb81a..d538a63f7 100644
--- a/testing-client/testsrc/org/aspectj/testing/TesterTest.java
+++ b/testing-client/testsrc/org/aspectj/testing/TesterTest.java
@@ -167,8 +167,8 @@ public class TesterTest extends TestCase {
* @author isberg
*/
public static class MyTestReporter implements IMessageHandler {
- public ArrayList failures = new ArrayList();
- public ArrayList passes = new ArrayList();
+ public ArrayList<IMessage> failures = new ArrayList<>();
+ public ArrayList<IMessage> passes = new ArrayList<>();
public void clear() {
failures.clear();
@@ -188,9 +188,8 @@ public class TesterTest extends TestCase {
return gotItem(failures, substring);
}
- boolean gotItem(List list, String substring) {
- for (Iterator iterator = list.iterator(); iterator.hasNext(); ) {
- IMessage element = (IMessage) iterator.next();
+ boolean gotItem(List<IMessage> list, String substring) {
+ for (IMessage element: list) {
String s = element.getMessage();
if ((null != s) && (-1 != s.indexOf(substring))) {
return true;