diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-18 01:02:11 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-18 01:02:11 +0000 |
commit | d5642a3c5358ecc08381340cd867b4e10b8e0bb3 (patch) | |
tree | 2f92c1a8fd4ac7b21674e09591f967812f610f78 /src | |
parent | e1f6d508cf71f8db4125859af2d6fe507c235402 (diff) | |
download | javassist-d5642a3c5358ecc08381340cd867b4e10b8e0bb3.tar.gz javassist-d5642a3c5358ecc08381340cd867b4e10b8e0bb3.zip |
reformatted.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@296 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/bytecode/annotation/ClassMemberValue.java | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/src/main/javassist/bytecode/annotation/ClassMemberValue.java b/src/main/javassist/bytecode/annotation/ClassMemberValue.java index af2a6c36..19b4714b 100644 --- a/src/main/javassist/bytecode/annotation/ClassMemberValue.java +++ b/src/main/javassist/bytecode/annotation/ClassMemberValue.java @@ -61,46 +61,28 @@ public class ClassMemberValue extends MemberValue { } Object getValue(ClassLoader cl, ClassPool cp, Method m) - throws ClassNotFoundException - { + throws ClassNotFoundException { final String classname = getValue(); if (classname.equals("void")) - { return void.class; - } - if (classname.equals("int")) - { + else if (classname.equals("int")) return int.class; - } - if (classname.equals("byte")) - { + else if (classname.equals("byte")) return byte.class; - } - if (classname.equals("long")) - { + else if (classname.equals("long")) return long.class; - } - if (classname.equals("double")) - { + else if (classname.equals("double")) return double.class; - } - if (classname.equals("float")) - { + else if (classname.equals("float")) return float.class; - } - if (classname.equals("char")) - { + else if (classname.equals("char")) return char.class; - } - if (classname.equals("short")) - { + else if (classname.equals("short")) return short.class; - } - if (classname.equals("boolean")) - { - return boolean.class; - } - return loadClass(cl, classname); + else if (classname.equals("boolean")) + return boolean.class; + else + return loadClass(cl, classname); } Class getType(ClassLoader cl) throws ClassNotFoundException { |