Skip to content

Commit

Permalink
去掉 JDK1.5 编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zozoh committed Jul 8, 2012
1 parent f580745 commit dabef23
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/org/nutz/lang/MirrorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,26 +590,19 @@ public static class PClass {
public char characterField2;
public boolean booleanField2;
}

@Test
public void test_evalGetterSetter() throws NoSuchMethodException {
Mirror<Pet> mirror = Mirror.me(Pet.class);
Mirror.evalGetterSetter(mirror.getGetter("name"), new Callback3<String, Method, Method>() {

@Override
public void invoke(String field, Method getter, Method setter) {
assertNotNull(getter);
assertNotNull(setter);
assertNotNull(field);
}

}, new Callback<Method>() {

@Override
public void invoke(Method obj) {

}


}, new Callback<Method>() {
public void invoke(Method obj) {}
});
}
}

0 comments on commit dabef23

Please sign in to comment.