aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/tools/reflect/Sample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/tools/reflect/Sample.java')
-rw-r--r--src/main/javassist/tools/reflect/Sample.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/javassist/tools/reflect/Sample.java b/src/main/javassist/tools/reflect/Sample.java
index b4634ec7..8a7360db 100644
--- a/src/main/javassist/tools/reflect/Sample.java
+++ b/src/main/javassist/tools/reflect/Sample.java
@@ -28,8 +28,7 @@ public class Sample {
mobj = _metaobject;
if (mobj == null)
return ClassMetaobject.invoke(this, identifier, args);
- else
- return mobj.trapMethodcall(identifier, args);
+ return mobj.trapMethodcall(identifier, args);
}
public static Object trapStatic(Object[] args, int identifier)
@@ -41,8 +40,7 @@ public class Sample {
public static Object trapRead(Object[] args, String name) {
if (args[0] == null)
return _classobject.trapFieldRead(name);
- else
- return ((Metalevel)args[0])._getMetaobject().trapFieldRead(name);
+ return ((Metalevel)args[0])._getMetaobject().trapFieldRead(name);
}
public static Object trapWrite(Object[] args, String name) {