Skip to content

Commit

Permalink
chore: declare functional interfaces effectively as functional ones
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Apr 23, 2023
1 parent 83d8c3c commit 179fd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/application/service/ApplicationService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package application.service
* An Application Service handle application logic without business elements.
* @param[T] the type returned by the service.
*/
interface ApplicationService<out T> {
fun interface ApplicationService<out T> {
/**
* Method to execute the application service.
* @return the result of type [T]
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/usecase/UseCase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package usecase
/**
* This models a simple use case that return an object of type [X].
*/
interface UseCase<out X> {
fun interface UseCase<out X> {
/** Execute the use case returning an object of type [X]. */
fun execute(): X
}

0 comments on commit 179fd44

Please sign in to comment.