From 6f3ea12282e0b93948748c23659a7d55230cc04c Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Thu, 1 Apr 2021 09:00:17 +0300 Subject: [PATCH] Remove unnecessary modifiers from FI.java (#30119) --- akka-actor/src/main/java/akka/japi/pf/FI.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/akka-actor/src/main/java/akka/japi/pf/FI.java b/akka-actor/src/main/java/akka/japi/pf/FI.java index 65fa1dba62..7e78d49b3a 100644 --- a/akka-actor/src/main/java/akka/japi/pf/FI.java +++ b/akka-actor/src/main/java/akka/japi/pf/FI.java @@ -22,14 +22,14 @@ public final class FI { * @param the input type, that this Apply will be applied to * @param the return type, that the results of the application will have */ - public static interface Apply { + public interface Apply { /** * The application to perform. * * @param i an instance that the application is performed on * @return the result of the application */ - public R apply(I i) throws Exception; + R apply(I i) throws Exception; } /** @@ -42,7 +42,7 @@ public final class FI { * @param the second input type, that this Apply will be applied to * @param the return type, that the results of the application will have */ - public static interface Apply2 { + public interface Apply2 { /** * The application to perform. * @@ -50,7 +50,7 @@ public final class FI { * @param i2 an instance that the application is performed on * @return the result of the application */ - public R apply(I1 i1, I2 i2) throws Exception; + R apply(I1 i1, I2 i2) throws Exception; } /** @@ -61,14 +61,14 @@ public final class FI { * * @param the type that the predicate will operate on. */ - public static interface TypedPredicate { + public interface TypedPredicate { /** * The predicate to evaluate. * * @param t an instance that the predicate is evaluated on. * @return the result of the predicate */ - public boolean defined(T t); + boolean defined(T t); } /** @@ -77,7 +77,7 @@ public final class FI { * @param the type that the predicate will operate on. * @param the type that the predicate will operate on. */ - public static interface TypedPredicate2 { + public interface TypedPredicate2 { /** * The predicate to evaluate. * @@ -85,7 +85,7 @@ public final class FI { * @param u an instance that the predicate is evaluated on. * @return the result of the predicate */ - public boolean defined(T t, U u); + boolean defined(T t, U u); } /** @@ -96,13 +96,13 @@ public final class FI { * * @param the input type, that this Apply will be applied to */ - public static interface UnitApply { + public interface UnitApply { /** * The application to perform. * * @param i an instance that the application is performed on */ - public void apply(I i) throws Exception; + void apply(I i) throws Exception; } /** @@ -111,14 +111,14 @@ public final class FI { * @param the first input type, that this Apply will be applied to * @param the second input type, that this Apply will be applied to */ - public static interface UnitApply2 { + public interface UnitApply2 { /** * The application to perform. * * @param i1 an instance that the application is performed on * @param i2 an instance that the application is performed on */ - public void apply(I1 i1, I2 i2) throws Exception; + void apply(I1 i1, I2 i2) throws Exception; } /** @@ -128,7 +128,7 @@ public final class FI { * @param the second input type, that this Apply will be applied to * @param the third input type, that this Apply will be applied to */ - public static interface UnitApply3 { + public interface UnitApply3 { /** * The application to perform. * @@ -136,7 +136,7 @@ public final class FI { * @param i2 an instance that the application is performed on * @param i3 an instance that the application is performed on */ - public void apply(I1 i1, I2 i2, I3 i3) throws Exception; + void apply(I1 i1, I2 i2, I3 i3) throws Exception; } /** @@ -147,7 +147,7 @@ public final class FI { * @param the third input type, that this Apply will be applied to * @param the fourth input type, that this Apply will be applied to */ - public static interface UnitApply4 { + public interface UnitApply4 { /** * The application to perform. * @@ -156,7 +156,7 @@ public final class FI { * @param i3 an instance that the application is performed on * @param i4 an instance that the application is performed on */ - public void apply(I1 i1, I2 i2, I3 i3, I4 i4) throws Exception; + void apply(I1 i1, I2 i2, I3 i3, I4 i4) throws Exception; } /** @@ -165,9 +165,9 @@ public final class FI { *

This class is kept for compatibility, but for future API's please prefer {@link * akka.japi.function.Effect}. */ - public static interface UnitApplyVoid { + public interface UnitApplyVoid { /** The application to perform. */ - public void apply() throws Exception; + void apply() throws Exception; } /** @@ -177,13 +177,13 @@ public final class FI { *

This class is kept for compatibility, but for future API's please prefer {@link * java.util.function.Predicate} or {@link akka.japi.function.Predicate}. */ - static interface Predicate { + interface Predicate { /** * The predicate to evaluate. * * @param o an instance that the predicate is evaluated on. * @return the result of the predicate */ - public boolean defined(Object o); + boolean defined(Object o); } }