File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/elements Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ This log will detail notable changes to MyBatis Dynamic SQL. Full details are av
44
55## Release 1.5.2 - Unreleased
66
7- This is a small maintenance release with improvements to the Kotlin DSL for CASE expressions.
7+ This is a small maintenance release with improvements to the Kotlin DSL for CASE expressions. We worked on this soon
8+ after the 1.5.1 release, so wanted to get it out quickly.
9+ See this PR for details: ([ #785 ] ( https://github.com/mybatis/mybatis-dynamic-sql/pull/785 ) )
10+
11+ GitHub milestone: [ https://github.com/mybatis/mybatis-dynamic-sql/milestone/14?closed=1 ] ( https://github.com/mybatis/mybatis-dynamic-sql/milestone/14?closed=1 )
812
913** Important:** This is the last release that will be compatible with Java 8.
1014
Original file line number Diff line number Diff line change @@ -66,14 +66,10 @@ class KSimpleCaseDSL<T : Any> : KElseDSL {
6666 internal val whenConditions = mutableListOf<SimpleCaseWhenCondition <T >>()
6767
6868 fun `when` (vararg conditions : VisitableCondition <T >) =
69- SimpleCaseThenGatherer { thenValue ->
70- whenConditions.add(ConditionBasedWhenCondition (conditions.asList(), thenValue))
71- }
69+ SimpleCaseThenGatherer { whenConditions.add(ConditionBasedWhenCondition (conditions.asList(), it)) }
7270
7371 fun `when` (vararg values : T ) =
74- SimpleCaseThenGatherer { thenValue ->
75- whenConditions.add(BasicWhenCondition (values.asList(), thenValue))
76- }
72+ SimpleCaseThenGatherer { whenConditions.add(BasicWhenCondition (values.asList(), it)) }
7773
7874 override infix fun `else` (column : BasicColumn ) {
7975 this .elseValue = column
You can’t perform that action at this time.
0 commit comments