Dieser Commit ist enthalten in:
Ursprung
746ae701d8
Commit
441661a8f5
@ -292,6 +292,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
|||||||
|
|
||||||
private LinkageType resolveSingle(TypeMirror typeMirror) {
|
private LinkageType resolveSingle(TypeMirror typeMirror) {
|
||||||
String qualifier = typeMirror.toString();
|
String qualifier = typeMirror.toString();
|
||||||
|
if (qualifier.contains("<")) qualifier = qualifier.substring(0, qualifier.indexOf('<'));
|
||||||
qualifier = qualifier.substring(qualifier.lastIndexOf('.') + 1);
|
qualifier = qualifier.substring(qualifier.lastIndexOf('.') + 1);
|
||||||
try {
|
try {
|
||||||
return (LinkageType) Class.forName("de.steamwar.linkage.types." + qualifier + "_" + context.name()).getDeclaredConstructor().newInstance();
|
return (LinkageType) Class.forName("de.steamwar.linkage.types." + qualifier + "_" + context.name()).getDeclaredConstructor().newInstance();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren