Some widening/foreaching I had lying around.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5780 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2009-05-12 23:25:07 +00:00
parent bbbdd3bb60
commit e740f387cc
3 changed files with 43 additions and 57 deletions
@@ -108,8 +108,8 @@ public class GenDObjectTask extends Task
DirectoryScanner ds = fs.getDirectoryScanner(getProject());
File fromDir = fs.getDir(getProject());
String[] srcFiles = ds.getIncludedFiles();
for (int f = 0; f < srcFiles.length; f++) {
processObject(new File(fromDir, srcFiles[f]));
for (String srcFile : srcFiles) {
processObject(new File(fromDir, srcFile));
}
}
}
@@ -153,8 +153,7 @@ public class GenDObjectTask extends Task
// determine which fields we need to deal with
ArrayList<Field> flist = new ArrayList<Field>();
Field[] fields = oclass.getDeclaredFields();
for (int ii = 0; ii < fields.length; ii++) {
Field f = fields[ii];
for (Field f : fields) {
int mods = f.getModifiers();
if (!Modifier.isPublic(mods) ||
Modifier.isStatic(mods) ||