Skip to content

Commit

Permalink
Merge pull request #350 from camunda-community-hub/kotlin-stdlib
Browse files Browse the repository at this point in the history
deps: switch from kotlin-stdlib to kotlin-stdlib-jdk8
  • Loading branch information
saig0 authored Mar 21, 2023
2 parents 88aa2c8 + 5650557 commit b1cb587
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 380 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.zeebe.zeeqs.data.repository
import io.zeebe.zeeqs.data.entity.Decision
import org.springframework.data.repository.PagingAndSortingRepository
import org.springframework.stereotype.Repository
import java.util.*

@Repository
interface DecisionRepository : PagingAndSortingRepository<Decision, Long> {
Expand All @@ -13,5 +12,5 @@ interface DecisionRepository : PagingAndSortingRepository<Decision, Long> {
fun findByDecisionRequirementsKeyAndDecisionId(
decisionRequirementsKey: Long,
decisionId: String
): Optional<Decision>
): Decision?
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.springframework.data.repository.findByIdOrNull
import org.springframework.graphql.data.method.annotation.Argument
import org.springframework.graphql.data.method.annotation.SchemaMapping
import org.springframework.stereotype.Controller
import kotlin.jvm.optionals.getOrNull

@Controller
class DecisionEvaluationResolver(
Expand All @@ -29,7 +28,7 @@ class DecisionEvaluationResolver(
decisionRepository.findByDecisionRequirementsKeyAndDecisionId(
decisionRequirementsKey = decisionEvaluation.decisionRequirementsKey,
decisionId = it
).getOrNull()
)
}
}

Expand Down
Loading

0 comments on commit b1cb587

Please sign in to comment.