Changeset 8478bfb


Ignore:
Timestamp:
Nov 22, 2013 11:46:39 AM (7 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
e1fcad68
Parents:
d6bb5f6
Message:

BOB: for each

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/BOB/src/net/i2p/BOB/Lifted.java

    rd6bb5f6 r8478bfb  
    1616package net.i2p.BOB;
    1717
    18 import java.util.Enumeration;
     18import java.util.Map;
    1919import java.util.Properties;
    2020
     
    4040         **/
    4141        public static void copyProperties(Properties src_prop, Properties dest_prop) {
    42                 for (Enumeration propertyNames = src_prop.propertyNames();
    43                         propertyNames.hasMoreElements();) {
    44                         Object key = propertyNames.nextElement();
    45                         dest_prop.put(key, src_prop.get(key));
     42                for (Map.Entry<Object, Object> e : src_prop.entrySet()) {
     43                        dest_prop.put((String)e.getKey(), (String)e.getValue());
    4644                }
    4745        }
Note: See TracChangeset for help on using the changeset viewer.