1313
1414package org .apache .pekko .http .javadsl .server ;
1515
16- import org .apache .pekko .japi .pf .FI ;
16+ import org .apache .pekko .japi .function .Function ;
17+ import org .apache .pekko .japi .function .Predicate ;
1718import org .apache .pekko .japi .pf .PFBuilder ;
1819
1920public class ExceptionHandlerBuilder {
@@ -35,7 +36,7 @@ private ExceptionHandlerBuilder(PFBuilder<Throwable, Route> delegate) {
3536 * @return a builder with the case statement added
3637 */
3738 public <P extends Throwable > ExceptionHandlerBuilder match (
38- final Class <P > type , FI . Apply <P , Route > apply ) {
39+ final Class <P > type , final Function <P , Route > apply ) {
3940 delegate .match (type , apply );
4041 return this ;
4142 }
@@ -50,7 +51,7 @@ public <P extends Throwable> ExceptionHandlerBuilder match(
5051 * @return a builder with the case statement added
5152 */
5253 public <P extends Throwable > ExceptionHandlerBuilder match (
53- final Class <P > type , final FI . TypedPredicate <P > predicate , final FI . Apply <P , Route > apply ) {
54+ final Class <P > type , final Predicate <P > predicate , final Function <P , Route > apply ) {
5455 delegate .match (type , predicate , apply );
5556 return this ;
5657 }
@@ -63,7 +64,7 @@ public <P extends Throwable> ExceptionHandlerBuilder match(
6364 * @return a builder with the case statement added
6465 */
6566 public <P extends Throwable > ExceptionHandlerBuilder matchEquals (
66- final P object , final FI . Apply <P , Route > apply ) {
67+ final P object , final Function <P , Route > apply ) {
6768 delegate .matchEquals (object , apply );
6869 return this ;
6970 }
@@ -74,7 +75,7 @@ public <P extends Throwable> ExceptionHandlerBuilder matchEquals(
7475 * @param apply an action to apply to the argument
7576 * @return a builder with the case statement added
7677 */
77- public ExceptionHandlerBuilder matchAny (final FI . Apply <Throwable , Route > apply ) {
78+ public ExceptionHandlerBuilder matchAny (final Function <Throwable , Route > apply ) {
7879 delegate .matchAny (apply );
7980 return this ;
8081 }
0 commit comments