From: nickl- Date: Fri, 27 Oct 2017 05:57:45 +0000 (+0200) Subject: Give helper private constructor fwiw. X-Git-Tag: rel_3_23_0_ga~9^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45e201f2fbc0e75ee5c050f633e23ca5d418d52f;p=javassist.git Give helper private constructor fwiw. Wont stop you from getting an instance but it makes it more trouble at least. Also reduce the visibility of the enum method. --- diff --git a/src/main/javassist/util/proxy/DefineClassHelper.java b/src/main/javassist/util/proxy/DefineClassHelper.java index b47f3b59..aebb5acb 100644 --- a/src/main/javassist/util/proxy/DefineClassHelper.java +++ b/src/main/javassist/util/proxy/DefineClassHelper.java @@ -170,7 +170,7 @@ public class DefineClassHelper }; - public abstract Class defineClass(String name, byte[] b, int off, int len, + protected abstract Class defineClass(String name, byte[] b, int off, int len, ClassLoader loader, ProtectionDomain protectionDomain) throws ClassFormatError; } @@ -231,4 +231,5 @@ public class DefineClassHelper } } + private DefineClassHelper() {} }