Or you can just do it in a "long" way:
Iterator i = properties.keySet().iterator(); while(i.hasNext()){ this.properties.put(i.next(), properties.get(i)); }
An iterator from the same java.util package as properties, so no external dependencies.
If the compiler warning about unverified types bothers you, you can simply change it (if your property keys are strings):
Iterator<Object> i = properties.keySet().iterator(); while(i.hasNext()){ this.properties.put(i.next().toString(), properties.get(i)); }
source share