forked from I2P_Developers/i2p.i2p
susidns: type arguments, for each
This commit is contained in:
@@ -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
|
|||||||
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 {
|
|||||||
// 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');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user