I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 3bc0be1c authored by str4d's avatar str4d
Browse files

susidns: type arguments, for each

parent 8d826cee
No related branches found
No related tags found
No related merge requests found
...@@ -30,9 +30,9 @@ import java.io.FileOutputStream; ...@@ -30,9 +30,9 @@ import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays; import java.util.Arrays;
import java.util.Comparator; import java.util.Comparator;
import java.util.Enumeration;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Locale; import java.util.Locale;
import java.util.Map;
import java.util.Properties; import java.util.Properties;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
...@@ -151,10 +151,9 @@ public class AddressbookBean extends BaseBean ...@@ -151,10 +151,9 @@ public class AddressbookBean extends BaseBean
fis = new FileInputStream( getFileName() ); fis = new FileInputStream( getFileName() );
addressbook.load( fis ); addressbook.load( fis );
LinkedList<AddressBean> list = new LinkedList<AddressBean>(); LinkedList<AddressBean> list = new LinkedList<AddressBean>();
Enumeration e = addressbook.keys(); for( Map.Entry<Object, Object> entry : addressbook.entrySet() ) {
while( e.hasMoreElements() ) { String name = (String) entry.getKey();
String name = (String)e.nextElement(); String destination = (String) entry.getValue();
String destination = addressbook.getProperty( name );
if( filter != null && filter.length() > 0 ) { if( filter != null && filter.length() > 0 ) {
if( filter.compareTo( "0-9" ) == 0 ) { if( filter.compareTo( "0-9" ) == 0 ) {
char first = name.charAt(0); char first = name.charAt(0);
......
...@@ -88,7 +88,7 @@ public class ConfigBean implements Serializable { ...@@ -88,7 +88,7 @@ public class ConfigBean implements Serializable {
// use loadProps to trim // use loadProps to trim
Properties props = new OrderedProperties(); Properties props = new OrderedProperties();
DataHelper.loadProps(props, file); DataHelper.loadProps(props, file);
for (Map.Entry e : props.entrySet()) { for (Map.Entry<Object, Object> e : props.entrySet()) {
buf.append((String) e.getKey()).append('=') buf.append((String) e.getKey()).append('=')
.append((String) e.getValue()).append('\n'); .append((String) e.getValue()).append('\n');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment