Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5799 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -101,11 +101,11 @@ public class ObjectEditorPanel extends ScrollablePanel
|
|||||||
// create our field editors
|
// create our field editors
|
||||||
try {
|
try {
|
||||||
Field[] fields = object.getClass().getFields();
|
Field[] fields = object.getClass().getFields();
|
||||||
for (int ii = 0; ii < fields.length; ii++) {
|
for (Field field : fields) {
|
||||||
// if the field is anything but a plain old public field,
|
// if the field is anything but a plain old public field,
|
||||||
// we don't want to edit it
|
// we don't want to edit it
|
||||||
if (fields[ii].getModifiers() == Modifier.PUBLIC) {
|
if (field.getModifiers() == Modifier.PUBLIC) {
|
||||||
add(_object.getEditor(_ctx, fields[ii]));
|
add(_object.getEditor(_ctx, field));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ public class ClassUtil
|
|||||||
public static Method findMethod (Class<?> clazz, String name)
|
public static Method findMethod (Class<?> clazz, String name)
|
||||||
{
|
{
|
||||||
Method[] methods = clazz.getMethods();
|
Method[] methods = clazz.getMethods();
|
||||||
for (int i = 0; i < methods.length; i++) {
|
for (Method method : methods) {
|
||||||
if (methods[i].getName().equals(name)) {
|
if (method.getName().equals(name)) {
|
||||||
return methods[i];
|
return method;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user