From 45e201f2fbc0e75ee5c050f633e23ca5d418d52f Mon Sep 17 00:00:00 2001 From: nickl- Date: Fri, 27 Oct 2017 07:57:45 +0200 Subject: [PATCH] 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. --- src/main/javassist/util/proxy/DefineClassHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {} } -- 2.39.5