Restricting `SubClassGenerator`
@@ -28,6 +28,8 @@ import jenkins.model.Jenkins;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Type;
+import org.kohsuke.accmod.Restricted;
+import org.kohsuke.accmod.restrictions.DoNotUse;
import java.lang.reflect.Constructor;
@@ -43,6 +45,7 @@ import static org.objectweb.asm.Opcodes.RETURN;
* @author Kohsuke Kawaguchi
*/
@Deprecated
+@Restricted(DoNotUse.class)
public class SubClassGenerator extends ClassLoader {
public SubClassGenerator(ClassLoader parent) {
super(parent);
