Browse Source

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.
tags/rel_3_23_0_ga
nickl- 6 years ago
parent
commit
45e201f2fb
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/main/javassist/util/proxy/DefineClassHelper.java

+ 2
- 1
src/main/javassist/util/proxy/DefineClassHelper.java View File

@@ -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() {}
}

Loading…
Cancel
Save