Dieser Commit ist enthalten in:
Ursprung
49a6a6f23f
Commit
f0151f2c8d
@ -166,7 +166,9 @@ public class LinkageProcessor extends AbstractProcessor {
|
||||
}
|
||||
neededFields.forEach((s, typeElement) -> {
|
||||
buildPlan.addImport(typeElement.getQualifiedName().toString());
|
||||
buildPlan.addField(new FieldBuilder(typeElement.getSimpleName().toString(), typeElement.getSimpleName().toString(), "new " + typeElement.getSimpleName().toString() + "()"));
|
||||
String t = typeElement.getSimpleName().toString();
|
||||
t = t.substring(0, 1).toLowerCase() + t.substring(1);
|
||||
buildPlan.addField(new FieldBuilder(typeElement.getSimpleName().toString(), t, "new " + typeElement.getSimpleName().toString() + "()"));
|
||||
});
|
||||
|
||||
Map<String, MethodBuilder> methods = new HashMap<>();
|
||||
@ -205,7 +207,8 @@ public class LinkageProcessor extends AbstractProcessor {
|
||||
|
||||
private String getElement(TypeElement typeElement, Map<String, TypeElement> neededFields) {
|
||||
if (neededFields.containsKey(typeElement.getQualifiedName().toString())) {
|
||||
return typeElement.getSimpleName().toString();
|
||||
String s = typeElement.getSimpleName().toString();
|
||||
return s.substring(0, 1).toLowerCase() + s.substring(1);
|
||||
}
|
||||
return "new " + typeElement.getSimpleName().toString() + "()";
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren