diff options
author | aclement <aclement> | 2011-08-11 19:04:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-08-11 19:04:31 +0000 |
commit | 96c36dc38385049da37901df868ac3c2bbbf37f6 (patch) | |
tree | a3707baee1491d4887491eea3995a3fc3f9bc21d /org.aspectj.ajdt.core | |
parent | 0c541f6694765385f516f6d79034b492b982c362 (diff) | |
download | aspectj-96c36dc38385049da37901df868ac3c2bbbf37f6.tar.gz aspectj-96c36dc38385049da37901df868ac3c2bbbf37f6.zip |
generics refactoring
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java index a1e239683..e255761b6 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java @@ -39,7 +39,7 @@ public class IncrementalStateManager { // SECRETAPI will consume more memory, so turn on at your own risk ;) Set to 'true' when memory usage is understood public static boolean recordIncrementalStates = false; public static boolean debugIncrementalStates = false; - private static Hashtable incrementalStates = new Hashtable(); + private static Hashtable<String, AjState> incrementalStates = new Hashtable<String, AjState>(); public static void recordSuccessfulBuild(String buildConfig, AjState state) { if (!recordIncrementalStates) { @@ -54,9 +54,9 @@ public class IncrementalStateManager { */ public static void persist() { // check serialization works - Set entries = incrementalStates.entrySet(); - for (Iterator iterator = entries.iterator(); iterator.hasNext();) { - Map.Entry entry = (Map.Entry) iterator.next(); + Set<Map.Entry<String, AjState>> entries = incrementalStates.entrySet(); + for (Iterator<Map.Entry<String, AjState>> iterator = entries.iterator(); iterator.hasNext();) { + Map.Entry<String, AjState> entry = iterator.next(); System.out.println("Name " + entry.getKey()); File f = new File("n:/temp/foo.ajstate"); try { @@ -96,13 +96,13 @@ public class IncrementalStateManager { // now, managing changes to entries on a classpath public static AjState findStateManagingOutputLocation(File location) { - Collection allStates = incrementalStates.values(); + Collection<AjState> allStates = incrementalStates.values(); if (debugIncrementalStates) { System.err.println("> findStateManagingOutputLocation(" + location + ") has " + allStates.size() + " states to look through"); } - for (Iterator iter = allStates.iterator(); iter.hasNext();) { - AjState element = (AjState) iter.next(); + for (Iterator<AjState> iter = allStates.iterator(); iter.hasNext();) { + AjState element = iter.next(); AjBuildConfig ajbc = element.getBuildConfig(); if (ajbc == null) { // FIXME asc why can it ever be null? |