aboutsummaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-07-08 20:50:01 +0000
committeraclement <aclement>2010-07-08 20:50:01 +0000
commit75467d52b8c68812895b437ec2d2e41fe95adf43 (patch)
treea8adc199b2f364bd9a6b57ac096ffbd04d182ee6 /ajde.core
parent2bcdbacf5f2278ad559d186935f3e9529e5412ff (diff)
downloadaspectj-75467d52b8c68812895b437ec2d2e41fe95adf43.tar.gz
aspectj-75467d52b8c68812895b437ec2d2e41fe95adf43.zip
generics
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/testsrc/org/aspectj/ajde/core/tests/model/SavedModelConsistencyTests.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/tests/model/SavedModelConsistencyTests.java b/ajde.core/testsrc/org/aspectj/ajde/core/tests/model/SavedModelConsistencyTests.java
index 1b475ae89..07c1497a4 100644
--- a/ajde.core/testsrc/org/aspectj/ajde/core/tests/model/SavedModelConsistencyTests.java
+++ b/ajde.core/testsrc/org/aspectj/ajde/core/tests/model/SavedModelConsistencyTests.java
@@ -72,8 +72,9 @@ public class SavedModelConsistencyTests extends AjdeCoreTestCase {
IProgramElement nodePostBuild = model.findElementForSourceLine(testFile.getAbsolutePath(), 5);
- assertTrue("Nodes should be identical: Prebuild kind = " + nodePreBuild.getKind() + " Postbuild kind = "
- + nodePostBuild.getKind(), nodePreBuild.getKind().equals(nodePostBuild.getKind()));
+ assertTrue(
+ "Nodes should be identical: Prebuild kind = " + nodePreBuild.getKind() + " Postbuild kind = "
+ + nodePostBuild.getKind(), nodePreBuild.getKind().equals(nodePostBuild.getKind()));
}
@@ -84,7 +85,7 @@ public class SavedModelConsistencyTests extends AjdeCoreTestCase {
IHierarchy model = asm.getHierarchy();
assertTrue("model exists", model != null);
- final List preBuildKinds = new ArrayList();
+ final List<IProgramElement.Kind> preBuildKinds = new ArrayList<IProgramElement.Kind>();
HierarchyWalker walker = new HierarchyWalker() {
public void preProcess(IProgramElement node) {
preBuildKinds.add(node.getKind());
@@ -96,7 +97,7 @@ public class SavedModelConsistencyTests extends AjdeCoreTestCase {
doBuild();
assertTrue("Expected no compiler errors but found " + handler.getErrors(), handler.getErrors().isEmpty());
- final List postBuildKinds = new ArrayList();
+ final List<IProgramElement.Kind> postBuildKinds = new ArrayList<IProgramElement.Kind>();
HierarchyWalker walker2 = new HierarchyWalker() {
public void preProcess(IProgramElement node) {
postBuildKinds.add(node.getKind());
@@ -105,8 +106,8 @@ public class SavedModelConsistencyTests extends AjdeCoreTestCase {
asm.getHierarchy().getRoot().walk(walker2);
assertFalse("Expected there to be build kinds but didn't " + "find any", preBuildKinds.isEmpty());
- assertTrue("Lists should be the same: PRE" + preBuildKinds.toString() + " POST" + postBuildKinds.toString(), preBuildKinds
- .equals(postBuildKinds));
+ assertTrue("Lists should be the same: PRE" + preBuildKinds.toString() + " POST" + postBuildKinds.toString(),
+ preBuildKinds.equals(postBuildKinds));
}