Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@824 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -68,7 +68,7 @@ public class BundleUtil
|
||||
*
|
||||
* @exception IOException thrown if an I/O error occurs while reading the object from the
|
||||
* bundle.
|
||||
*/
|
||||
*/
|
||||
public static Object loadObject (ResourceBundle bundle, String path, boolean wipeOnFailure)
|
||||
throws IOException, ClassNotFoundException
|
||||
{
|
||||
|
||||
@@ -47,8 +47,8 @@ public class DumpBundle
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
File file = new File(args[i]);
|
||||
for (String arg : args) {
|
||||
File file = new File(arg);
|
||||
try {
|
||||
ResourceBundle bundle = new FileResourceBundle(file);
|
||||
|
||||
@@ -69,7 +69,7 @@ public class DumpBundle
|
||||
dumpTable("components: ", comps);
|
||||
|
||||
} catch (Exception e) {
|
||||
System.err.println("Error dumping bundle [path=" + args[i] +
|
||||
System.err.println("Error dumping bundle [path=" + arg +
|
||||
", error=" + e + "].");
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -81,5 +81,5 @@ public class DumpBundle
|
||||
if (table != null) {
|
||||
System.out.println(prefix + StringUtil.toString(table.entrySet().iterator()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user