Skip to content

Commit 0bac5cd

Browse files
committed
Move IntFunction to scala and don't allow throwing
1 parent 0f6def6 commit 0bac5cd

File tree

3 files changed

+7
-56
lines changed

3 files changed

+7
-56
lines changed

actor/src/main/java/org/apache/pekko/japi/function/IntFunction.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

actor/src/main/java/org/apache/pekko/japi/function/package-info.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,10 @@ trait Creator[+T] extends Serializable {
152152
@throws(classOf[Exception])
153153
def create(): T
154154
}
155+
156+
@nowarn("msg=@SerialVersionUID has no effect")
157+
@SerialVersionUID(1L)
158+
@FunctionalInterface
159+
trait IntFunction[T] extends Serializable {
160+
def apply(value: Int): T
161+
}

0 commit comments

Comments
 (0)