aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyongSik-Yoon <sam1287@gmail.com>2015-07-31 15:36:33 +0900
committerKyongSik-Yoon <sam1287@gmail.com>2015-07-31 15:36:33 +0900
commitf82eadaf4cce3a8869d453a926be5c69eedec4bd (patch)
treeab63a6fdd861ad10c22955562bfe4c499b1700fd
parent2705a49f8fbe930cffa4358553e625071b3bf8ed (diff)
downloadjavassist-f82eadaf4cce3a8869d453a926be5c69eedec4bd.tar.gz
javassist-f82eadaf4cce3a8869d453a926be5c69eedec4bd.zip
Generic is not supported by JDK under 1.5 version.
-rw-r--r--src/main/javassist/CtClassType.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java
index e86780d3..8aa76b82 100644
--- a/src/main/javassist/CtClassType.java
+++ b/src/main/javassist/CtClassType.java
@@ -687,7 +687,7 @@ class CtClassType extends CtClass {
}
catch (ClassNotFoundException e2){
try {
- Class<?> clazz = cp.get(anno.getTypeName()).toClass();
+ Class clazz = cp.get(anno.getTypeName()).toClass();
return javassist.bytecode.annotation.AnnotationImpl.make(
clazz.getClassLoader(),
clazz, cp, anno);
@@ -1226,14 +1226,14 @@ class CtClassType extends CtClass {
CtMember.Cache memCache = getMembers();
CtMember mth = memCache.methodHead();
CtMember mthTail = memCache.lastMethod();
- ArrayList<CtMethod> methods = new ArrayList<CtMethod>();
+ ArrayList methods = new ArrayList();
while (mth != mthTail) {
mth = mth.next();
if (mth.getName().equals(name))
methods.add((CtMethod)mth);
}
- return methods.toArray(new CtMethod[methods.size()]);
+ return (CtMethod[]) methods.toArray(new CtMethod[methods.size()]);
}
public CtMethod getDeclaredMethod(String name) throws NotFoundException {