Tidy up
This commit is contained in:
parent
e69ab1fef2
commit
d3968e03a0
|
|
@ -126,8 +126,8 @@ public class ClientMixinValidator {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleImmutableEntry<? extends CharSequence, ? extends CharSequence>
|
public Map.Entry<? extends CharSequence, ? extends CharSequence>
|
||||||
getEntry(TypeElement annotatedMixinClass) {
|
getClientMixinEntry(TypeElement annotatedMixinClass) {
|
||||||
return new SimpleImmutableEntry<>(
|
return new SimpleImmutableEntry<>(
|
||||||
annotatedMixinClass.getQualifiedName(),
|
annotatedMixinClass.getQualifiedName(),
|
||||||
getTargets(annotatedMixinClass)
|
getTargets(annotatedMixinClass)
|
||||||
|
|
@ -167,7 +167,7 @@ public class ClientMixinValidator {
|
||||||
}
|
}
|
||||||
return Stream.of(clzsses, imaginaries)
|
return Stream.of(clzsses, imaginaries)
|
||||||
.flatMap(Collection::stream)
|
.flatMap(Collection::stream)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toSet());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toSourceString(String bytecodeName) {
|
public static String toSourceString(String bytecodeName) {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ public class MixinProcessor extends AbstractProcessor {
|
||||||
// The implementation may throw a CME
|
// The implementation may throw a CME
|
||||||
mixins.sequential()
|
mixins.sequential()
|
||||||
.filter(validator::validateMixin)
|
.filter(validator::validateMixin)
|
||||||
.map(validator::getEntry)
|
.map(validator::getClientMixinEntry)
|
||||||
.forEach(this::logClientClassTarget);
|
.forEach(this::logClientClassTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user