diff options
author | aclement <aclement> | 2011-08-16 16:33:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-08-16 16:33:09 +0000 |
commit | 5547d017938a46a05346b7874fd11509d8860a70 (patch) | |
tree | 53dfa929594baeee6fbe2dfe5280b3966ec60296 /ajde.core/src | |
parent | 7f993999d7e16bfeccfe01e280db46636596ca52 (diff) | |
download | aspectj-5547d017938a46a05346b7874fd11509d8860a70.tar.gz aspectj-5547d017938a46a05346b7874fd11509d8860a70.zip |
generics
Diffstat (limited to 'ajde.core/src')
-rw-r--r-- | ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java index 94612b979..8ebfb8424 100644 --- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java +++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java @@ -336,12 +336,11 @@ public class AjdeCoreBuildManager { return config; } - private void mergeInto(Collection target, Collection source) { + private <T> void mergeInto(Collection<T> target, Collection<T> source) { if ((null == target) || (null == source)) { return; } - for (Iterator iter = source.iterator(); iter.hasNext();) { - Object next = iter.next(); + for (T next : source) { if (!target.contains(next)) { target.add(next); } |