Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
olegz committed Oct 18, 2024
1 parent 8daa2aa commit ba2db77
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Consumer;
Expand Down Expand Up @@ -195,7 +194,7 @@ public static Type discoverFunctionTypeFromClass(Class<?> functionalClass) {
if (Function1.class.isAssignableFrom(functionalClass)) {
try {
return TypeResolver.reify(Function1.class, (Class<Function1<?, ?>>) functionalClass);
}
}
catch (Exception e) {
return discoverFunctionTypeFromFunctionMethod(discoverFunctionalMethod(functionalClass));
}
Expand Down

0 comments on commit ba2db77

Please sign in to comment.