use an anon function

This commit is contained in:
Gavin King 2024-12-16 20:30:00 +01:00
parent b712fa0296
commit ecd9917c6f
1 changed files with 1 additions and 7 deletions

View File

@ -36,7 +36,6 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.function.Function;
import static java.beans.Introspector.decapitalize; import static java.beans.Introspector.decapitalize;
import static org.hibernate.processor.util.AccessTypeInformation.DEFAULT_ACCESS_TYPE; import static org.hibernate.processor.util.AccessTypeInformation.DEFAULT_ACCESS_TYPE;
@ -190,12 +189,7 @@ public final class TypeUtils {
return context.getTypeUtils().getDeclaredType( return context.getTypeUtils().getDeclaredType(
typeElement, typeElement,
declaredType.getTypeArguments().stream() declaredType.getTypeArguments().stream()
.map( new Function<TypeMirror, TypeMirror>() { .map( arg -> extractClosestRealType( arg, context, beingVisited ) )
@Override
public @Nullable TypeMirror apply(TypeMirror arg) {
return extractClosestRealType( arg, context, beingVisited );
}
} )
.toArray( TypeMirror[]::new ) .toArray( TypeMirror[]::new )
); );
default: default: