mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-07 02:09:31 +00:00
use an anon function
This commit is contained in:
parent
b712fa0296
commit
ecd9917c6f
@ -36,7 +36,6 @@
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
|
||||
import static java.beans.Introspector.decapitalize;
|
||||
import static org.hibernate.processor.util.AccessTypeInformation.DEFAULT_ACCESS_TYPE;
|
||||
@ -190,12 +189,7 @@ public static String extractClosestRealTypeAsString(TypeMirror type, Context con
|
||||
return context.getTypeUtils().getDeclaredType(
|
||||
typeElement,
|
||||
declaredType.getTypeArguments().stream()
|
||||
.map( new Function<TypeMirror, TypeMirror>() {
|
||||
@Override
|
||||
public @Nullable TypeMirror apply(TypeMirror arg) {
|
||||
return extractClosestRealType( arg, context, beingVisited );
|
||||
}
|
||||
} )
|
||||
.map( arg -> extractClosestRealType( arg, context, beingVisited ) )
|
||||
.toArray( TypeMirror[]::new )
|
||||
);
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user