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
4
4
5
5
## Release 1.5.2 - Unreleased
6
6
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 )
8
12
9
13
** Important:** This is the last release that will be compatible with Java 8.
10
14
Original file line number Diff line number Diff line change @@ -66,14 +66,10 @@ class KSimpleCaseDSL<T : Any> : KElseDSL {
66
66
internal val whenConditions = mutableListOf<SimpleCaseWhenCondition <T >>()
67
67
68
68
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)) }
72
70
73
71
fun `when` (vararg values : T ) =
74
- SimpleCaseThenGatherer { thenValue ->
75
- whenConditions.add(BasicWhenCondition (values.asList(), thenValue))
76
- }
72
+ SimpleCaseThenGatherer { whenConditions.add(BasicWhenCondition (values.asList(), it)) }
77
73
78
74
override infix fun `else` (column : BasicColumn ) {
79
75
this .elseValue = column
You can’t perform that action at this time.
0 commit comments