Skip to content

Commit

Permalink
Make ComponentSelectionWithCurrent.currentVersion not null
Browse files Browse the repository at this point in the history
* ComponentSelectionWithCurrent objects are only created in one place and the currentVersion argument passed there is never null, so it's safe to make the property non-null as it effectively never is.
* This also fixes some issues in the Kotlin example, in which the dependencyUpdates task configuration was assumming the `currentVersion` property was not-null.
  • Loading branch information
vjgarciag96 committed Sep 11, 2022
1 parent a247860 commit fbfab6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.artifacts.ComponentSelection

class ComponentSelectionWithCurrent(
private val delegate: ComponentSelection,
val currentVersion: String? = null,
val currentVersion: String,
) : ComponentSelection by delegate {

override fun toString(): String {
Expand Down

0 comments on commit fbfab6f

Please sign in to comment.