diff options
author | nickl- <github@jigsoft.co.za> | 2017-10-27 07:57:45 +0200 |
---|---|---|
committer | nickl- <github@jigsoft.co.za> | 2017-11-12 23:49:21 +0200 |
commit | 45e201f2fbc0e75ee5c050f633e23ca5d418d52f (patch) | |
tree | 9a7725269026f554564e496a3954fa0d80a28c58 /src | |
parent | 4e81640868096321627deb064b3f63e48c9a9705 (diff) | |
download | javassist-45e201f2fbc0e75ee5c050f633e23ca5d418d52f.tar.gz javassist-45e201f2fbc0e75ee5c050f633e23ca5d418d52f.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/util/proxy/DefineClassHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
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() {} } |