Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
45e201f2fb
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/main/javassist/util/proxy/DefineClassHelper.java

+ 2
- 1
src/main/javassist/util/proxy/DefineClassHelper.java Näytä tiedosto

@@ -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…
Peruuta
Tallenna