Skip to content

Commit 179fd44

Browse files
chore: declare functional interfaces effectively as functional ones
1 parent 83d8c3c commit 179fd44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/application/service/ApplicationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package application.service
1313
* An Application Service handle application logic without business elements.
1414
* @param[T] the type returned by the service.
1515
*/
16-
interface ApplicationService<out T> {
16+
fun interface ApplicationService<out T> {
1717
/**
1818
* Method to execute the application service.
1919
* @return the result of type [T]

src/main/kotlin/usecase/UseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package usecase
1111
/**
1212
* This models a simple use case that return an object of type [X].
1313
*/
14-
interface UseCase<out X> {
14+
fun interface UseCase<out X> {
1515
/** Execute the use case returning an object of type [X]. */
1616
fun execute(): X
1717
}

0 commit comments

Comments
 (0)