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

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

SAM: for each

parent 3bc0be1c
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ package net.i2p.sam; ...@@ -11,7 +11,7 @@ package net.i2p.sam;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.Enumeration; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import java.util.StringTokenizer; import java.util.StringTokenizer;
...@@ -188,14 +188,13 @@ public class SAMUtils { ...@@ -188,14 +188,13 @@ public class SAMUtils {
/* Dump a Properties object in an human-readable form */ /* Dump a Properties object in an human-readable form */
private static String dumpProperties(Properties props) { private static String dumpProperties(Properties props) {
Enumeration names = props.propertyNames();
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
String key, val; String key, val;
boolean firstIter = true; boolean firstIter = true;
while (names.hasMoreElements()) { for (Map.Entry<Object, Object> entry : props.entrySet()) {
key = (String)names.nextElement(); key = (String) entry.getKey();
val = props.getProperty(key); val = (String) entry.getValue();
if (!firstIter) { if (!firstIter) {
builder.append(";"); builder.append(";");
......
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