Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
1.1.1 source code.tar.gz | 2021-11-27 | 150.9 kB | |
1.1.1 source code.zip | 2021-11-27 | 188.8 kB | |
README.md | 2021-11-27 | 747 Bytes | |
Totals: 3 Items | 340.5 kB | 0 |
What's Changed
- Feature: Every
whatif
relevant functions use Contracts internally by @skydoves in https://github.com/skydoves/WhatIf/pull/11 - API explicit mode by @skydoves in https://github.com/skydoves/WhatIf/pull/9
- Integrate: Binary Validator by @skydoves in https://github.com/skydoves/WhatIf/pull/10
Introduce
Since 1.1.1
, every whatIf
relevant functions use the Contracts as AT_MOST_ONCE
internally.
It improving the variable initialization analysis in the presence of high-order functions:
:::kotlin
val string: String
nullableString.whatIfNotNull {
string = it
// do something //
}
Full Changelog: https://github.com/skydoves/WhatIf/compare/1.1.0...1.1.1