]> source.dussan.org Git - aspectj.git/commitdiff
use valueOf
authoraclement <aclement>
Fri, 5 Aug 2011 16:22:02 +0000 (16:22 +0000)
committeraclement <aclement>
Fri, 5 Aug 2011 16:22:02 +0000 (16:22 +0000)
loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java

index f407a19f59d1124b27e46eb9eda8afae4d63e719..868c94c48fda09c5cdcabe846ab3c67829207733 100644 (file)
@@ -1026,7 +1026,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
                                                String.class, bytes.getClass(), int.class, int.class, ProtectionDomain.class });
                        }
                        defineClassWithProtectionDomainMethod.setAccessible(true);
-                       clazz = defineClassWithProtectionDomainMethod.invoke(loader, new Object[] { name, bytes, new Integer(0),
+                       clazz = defineClassWithProtectionDomainMethod.invoke(loader, new Object[] { name, bytes, Integer.valueOf(0),
                                        new Integer(bytes.length), protectionDomain });
                } catch (InvocationTargetException e) {
                        if (e.getTargetException() instanceof LinkageError) {