Linkage #20
@ -154,6 +154,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
||||
buildPlan.addField(new FieldBuilder(typeElement.getSimpleName().toString(), typeElement.getSimpleName().toString()));
|
||||
|
||||
MethodBuilder initializer = new MethodBuilder(typeElement.getSimpleName().toString(), typeElement.getSimpleName().toString());
|
||||
initializer.setPrivate(true);
|
||||
initializer.addLine("if (" + typeElement.getSimpleName().toString() + " == null) {");
|
||||
initializer.addLine(" " + typeElement.getSimpleName().toString() + " = new " + typeElement.getSimpleName().toString() + "();");
|
||||
initializer.addLine("}");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren