Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix-Starlight committed Dec 17, 2023
1 parent d6b415e commit 6b72ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ private boolean warn(Object o) {
return false;
}

public SimpleImmutableEntry<? extends CharSequence, ? extends CharSequence>
getEntry(TypeElement annotatedMixinClass) {
public Map.Entry<? extends CharSequence, ? extends CharSequence>
getClientMixinEntry(TypeElement annotatedMixinClass) {
return new SimpleImmutableEntry<>(
annotatedMixinClass.getQualifiedName(),
getTargets(annotatedMixinClass)
Expand Down Expand Up @@ -167,7 +167,7 @@ private Collection<Object> getTargets(TypeElement mixinAnnotatedClass) {
}
return Stream.of(clzsses, imaginaries)
.flatMap(Collection::stream)
.collect(Collectors.toList());
.collect(Collectors.toSet());
}

public static String toSourceString(String bytecodeName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void validateCommonMixins(TypeElement annotation, Stream<TypeElement> mi
// The implementation may throw a CME
mixins.sequential()
.filter(validator::validateMixin)
.map(validator::getEntry)
.map(validator::getClientMixinEntry)
.forEach(this::logClientClassTarget);
}

Expand Down

0 comments on commit 6b72ec6

Please sign in to comment.