summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode')
-rw-r--r--src/main/javassist/bytecode/Descriptor.java2
-rw-r--r--src/main/javassist/bytecode/annotation/AnnotationImpl.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/javassist/bytecode/Descriptor.java b/src/main/javassist/bytecode/Descriptor.java
index d9db92ba..e2163ad1 100644
--- a/src/main/javassist/bytecode/Descriptor.java
+++ b/src/main/javassist/bytecode/Descriptor.java
@@ -358,7 +358,7 @@ public class Descriptor {
* the last parameter.
*
* @param type the type of the appended parameter.
- * @param desc descriptor
+ * @param descriptor the original descriptor.
*/
public static String appendParameter(CtClass type, String descriptor) {
int i = descriptor.indexOf(')');
diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
index e912cf06..dfd23bb0 100644
--- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java
+++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
@@ -48,7 +48,7 @@ public class AnnotationImpl implements InvocationHandler {
// Try to resolve the JDK annotation type method
try {
Class clazz = Class.forName(JDK_ANNOTATION_CLASS_NAME);
- JDK_ANNOTATION_TYPE_METHOD = clazz.getMethod("annotationType", null);
+ JDK_ANNOTATION_TYPE_METHOD = clazz.getMethod("annotationType", (Class[])null);
}
catch (Exception ignored) {
// Probably not JDK5+
@@ -243,7 +243,7 @@ public class AnnotationImpl implements InvocationHandler {
}
}
- Class otherAnnotationType = (Class) JDK_ANNOTATION_TYPE_METHOD.invoke(obj, null);
+ Class otherAnnotationType = (Class) JDK_ANNOTATION_TYPE_METHOD.invoke(obj, (Object[])null);
if (getAnnotationType().equals(otherAnnotationType) == false)
return false;
@@ -260,7 +260,7 @@ public class AnnotationImpl implements InvocationHandler {
value = mv.getValue(classLoader, pool, methods[i]);
if (value == null)
value = getDefault(name, methods[i]);
- otherValue = methods[i].invoke(obj, null);
+ otherValue = methods[i].invoke(obj, (Object[])null);
}
catch (RuntimeException e) {
throw e;