mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-12-22 11:24:56 +01:00
chore: constructors should be private
This commit is contained in:
parent
a5576ac5e7
commit
61fa43fb8d
3 changed files with 7 additions and 6 deletions
|
@ -40,13 +40,13 @@ public class ClassContainer {
|
|||
public final Element elem;
|
||||
|
||||
/**
|
||||
* Public constructor.
|
||||
* Private constructor, called from {@link #from(Annotation, Function, String, ProcessingEnvironment, ObfuscationMapper)}.
|
||||
* @param fqn the fully-qualified name of the target class
|
||||
* @param innerNames an array of Strings containing the path to the inner class, may be null
|
||||
* @param env the {@link ProcessingEnvironment} to be used to locate the class
|
||||
* @param mapper the {@link ObfuscationMapper} to be used, may be null
|
||||
*/
|
||||
public ClassContainer(String fqn, String[] innerNames, ProcessingEnvironment env, ObfuscationMapper mapper) {
|
||||
private ClassContainer(String fqn, String[] innerNames, ProcessingEnvironment env, ObfuscationMapper mapper) {
|
||||
//find and validate
|
||||
Element elem = env.getElementUtils().getTypeElement(fqn);
|
||||
|
||||
|
|
|
@ -55,14 +55,14 @@ public class FieldContainer {
|
|||
public final VariableElement elem;
|
||||
|
||||
/**
|
||||
* Public constructor.
|
||||
* Private constructor, called from {@link #from(VariableElement, ProcessingEnvironment, ObfuscationMapper)}.
|
||||
* @param parent the {@link ClassContainer} representing the parent
|
||||
* @param name the fully-qualified name of the target field
|
||||
* @param descriptor the descriptor of the target field, may be null for verifiable fields
|
||||
* @param env the {@link ProcessingEnvironment} to perform the operation in
|
||||
* @param mapper the {@link ObfuscationMapper} to be used, may be null
|
||||
*/
|
||||
public FieldContainer(
|
||||
private FieldContainer(
|
||||
ClassContainer parent, String name, String descriptor,
|
||||
ProcessingEnvironment env, ObfuscationMapper mapper) {
|
||||
this.parent = parent;
|
||||
|
|
|
@ -54,7 +54,8 @@ public class MethodContainer {
|
|||
public final ExecutableElement elem;
|
||||
|
||||
/**
|
||||
* Public constructor.
|
||||
* Private constructor, called from
|
||||
* {@link #from(ExecutableElement, Target, Find, ProcessingEnvironment, ObfuscationMapper)}.
|
||||
* @param parent the {@link ClassContainer} representing the parent
|
||||
* @param name the fully-qualified name of the target method
|
||||
* @param descriptor the descriptor of the target method
|
||||
|
@ -62,7 +63,7 @@ public class MethodContainer {
|
|||
* @param env the {@link ProcessingEnvironment} to perform the operation in
|
||||
* @param mapper the {@link ObfuscationMapper} to be used, may be null
|
||||
*/
|
||||
public MethodContainer(
|
||||
private MethodContainer(
|
||||
ClassContainer parent, String name, String descriptor,
|
||||
boolean strict, ProcessingEnvironment env, ObfuscationMapper mapper) {
|
||||
this.parent = parent;
|
||||
|
|
Loading…
Reference in a new issue