aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2014-10-07 16:44:58 -0700
committerAndy Clement <aclement@gopivotal.com>2014-10-07 16:44:58 -0700
commit48eac479f6526b41a5960fd1574020d0eb645532 (patch)
treed83d536b8d6edf51fd40b5c832b47753e74c7454 /asm
parent34cff6034e44295417149fdb85dd2cebac8c983f (diff)
downloadaspectj-48eac479f6526b41a5960fd1574020d0eb645532.tar.gz
aspectj-48eac479f6526b41a5960fd1574020d0eb645532.zip
Polish generics
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/AsmManager.java9
-rw-r--r--asm/src/org/aspectj/asm/internal/ProgramElement.java1
2 files changed, 6 insertions, 4 deletions
diff --git a/asm/src/org/aspectj/asm/AsmManager.java b/asm/src/org/aspectj/asm/AsmManager.java
index 20579df40..2ab34c862 100644
--- a/asm/src/org/aspectj/asm/AsmManager.java
+++ b/asm/src/org/aspectj/asm/AsmManager.java
@@ -256,6 +256,7 @@ public class AsmManager implements IStructureModel {
((AspectJElementHierarchy) hierarchy).setAsmManager(this);
hierarchyReadOK = true;
mapper = (RelationshipMap) s.readObject();
+ s.close();
}
} catch (FileNotFoundException fnfe) {
// That is OK
@@ -931,13 +932,13 @@ public class AsmManager implements IStructureModel {
Set<String> sourcesToRemove = new HashSet<String>();
Set<String> nonExistingHandles = new HashSet<String>(); // Cache of handles that we
// *know* are invalid
- int srchandlecounter = 0;
- int tgthandlecounter = 0;
+// int srchandlecounter = 0;
+// int tgthandlecounter = 0;
// Iterate over the source handles in the relationships map
Set<String> keyset = mapper.getEntries(); // These are source handles
for (String hid : keyset) {
- srchandlecounter++;
+// srchandlecounter++;
// Do we already know this handle points to nowhere?
if (nonExistingHandles.contains(hid)) {
@@ -967,7 +968,7 @@ public class AsmManager implements IStructureModel {
// Iterate through the targets for this relationship
for (Iterator<String> targetIter = targets.iterator(); targetIter.hasNext();) {
String targethid = targetIter.next();
- tgthandlecounter++;
+// tgthandlecounter++;
// Do we already know it doesn't exist?
if (nonExistingHandles.contains(targethid)) {
if (dumpDeltaProcessing) {
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java
index 497b25028..51aafd936 100644
--- a/asm/src/org/aspectj/asm/internal/ProgramElement.java
+++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java
@@ -830,6 +830,7 @@ public class ProgramElement implements IProgramElement {
}
}
+ @SuppressWarnings("unchecked")
public Map<String, List<String>> getDeclareParentsMap() {
Map<String, List<String>> s = (Map<String, List<String>>) kvpairs.get("declareparentsmap");
return s;