summaryrefslogtreecommitdiffstats
path: root/maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-04-03 15:14:18 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-04-03 15:14:18 +0000
commit6fcc4a33796196026b325e410dbdee68d5aa757d (patch)
tree6360637689334eef5b33e24c149fa3990d103da0 /maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java
parent8efa58c98f152b6153c28472b647ca36be594ed0 (diff)
One more place to close files
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@930529 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java b/maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java
index e31c29ead4..bc52252ba1 100644
--- a/maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java
+++ b/maven-plugins/trunk/maven-eclipse-compiler/src/main/java/org/apache/tuscany/maven/compiler/osgi/BundleResolver.java
@@ -32,7 +32,6 @@ import java.util.Arrays;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
@@ -159,11 +158,10 @@ public class BundleResolver {
}
private Properties manifestToProperties(Attributes d) {
- Iterator iter = d.keySet().iterator();
Properties result = new Properties();
- while (iter.hasNext()) {
- Attributes.Name key = (Attributes.Name)iter.next();
- result.put(key.toString(), d.get(key));
+ for(Map.Entry<Object, Object> e: d.entrySet()) {
+ Attributes.Name key = (Attributes.Name)e.getKey();
+ result.put(key.toString(), e.getValue());
}
return result;
}