aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util/HotSwapAgent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/util/HotSwapAgent.java')
-rw-r--r--src/main/javassist/util/HotSwapAgent.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/javassist/util/HotSwapAgent.java b/src/main/javassist/util/HotSwapAgent.java
index 684f8540..c3773197 100644
--- a/src/main/javassist/util/HotSwapAgent.java
+++ b/src/main/javassist/util/HotSwapAgent.java
@@ -106,10 +106,10 @@ public class HotSwapAgent {
/**
* Redefines a class.
*/
- public static void redefine(Class oldClass, CtClass newClass)
+ public static void redefine(Class<?> oldClass, CtClass newClass)
throws NotFoundException, IOException, CannotCompileException
{
- Class[] old = { oldClass };
+ Class<?>[] old = { oldClass };
CtClass[] newClasses = { newClass };
redefine(old, newClasses);
}
@@ -117,7 +117,7 @@ public class HotSwapAgent {
/**
* Redefines classes.
*/
- public static void redefine(Class[] oldClasses, CtClass[] newClasses)
+ public static void redefine(Class<?>[] oldClasses, CtClass[] newClasses)
throws NotFoundException, IOException, CannotCompileException
{
startAgent();