18,7 → 18,6 |
import java.util.ArrayList; |
import java.util.List; |
import java.util.Map; |
|
import javax.xml.bind.annotation.XmlElement; |
import javax.xml.bind.annotation.XmlRootElement; |
|
45,13 → 44,13 |
/** |
* Converts a Map<String, String> into a list of |
* AntProperties. |
* @param newMap The map to convert |
* @param map The map to convert |
* @return A list of key/value pairs |
*/ |
public static List<AntProperty> createAntPropertyList(Map<String, Object> newMap) { |
public static List<AntProperty> createAntPropertyList(Map<String, String> map) { |
List<AntProperty> list = new ArrayList<AntProperty>(); |
for(Map.Entry<String, Object> e : newMap.entrySet()) { |
list.add(new AntProperty(e.getKey(), (String)e.getValue())); |
for(Map.Entry<String, String> e : map.entrySet()) { |
list.add(new AntProperty(e.getKey(), e.getValue())); |
} |
return list; |
} |