Skip to content

Commit ecd9917

Browse files
committed
use an anon function
1 parent b712fa0 commit ecd9917

File tree

1 file changed

+1
-7
lines changed
  • tooling/metamodel-generator/src/main/java/org/hibernate/processor/util

1 file changed

+1
-7
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import java.util.List;
3737
import java.util.Map;
3838
import java.util.Set;
39-
import java.util.function.Function;
4039

4140
import static java.beans.Introspector.decapitalize;
4241
import static org.hibernate.processor.util.AccessTypeInformation.DEFAULT_ACCESS_TYPE;
@@ -190,12 +189,7 @@ public static String extractClosestRealTypeAsString(TypeMirror type, Context con
190189
return context.getTypeUtils().getDeclaredType(
191190
typeElement,
192191
declaredType.getTypeArguments().stream()
193-
.map( new Function<TypeMirror, TypeMirror>() {
194-
@Override
195-
public @Nullable TypeMirror apply(TypeMirror arg) {
196-
return extractClosestRealType( arg, context, beingVisited );
197-
}
198-
} )
192+
.map( arg -> extractClosestRealType( arg, context, beingVisited ) )
199193
.toArray( TypeMirror[]::new )
200194
);
201195
default:

0 commit comments

Comments
 (0)