Skip to content

Commit

Permalink
Another bang
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Nov 16, 2023
1 parent f7927f0 commit 95549b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/slack/auto/value/kotlin/AvkBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public data class AvkBuilder(
for (builderProp in builderProps) {
if (builderProp.builder != null) {
beginControlFlow("if (%N != null)", builderProp.builderPropName)
addStatement("this.%N = %N.build()", builderProp.name, builderProp.builderPropName)
addStatement("this.%N = %N!!.build()", builderProp.name, builderProp.builderPropName)
// property builders can never be nullable
nextControlFlow("else if (this.%N == null)", builderProp.name)
val rawType =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class AutoValueKotlinExtensionTest {
internal fun build(): Example {
if (requiredBuildableCollectionBuilder != null) {
this.requiredBuildableCollection = requiredBuildableCollectionBuilder.build()
this.requiredBuildableCollection = requiredBuildableCollectionBuilder!!.build()
} else if (this.requiredBuildableCollection == null) {
this.requiredBuildableCollection = ImmutableList.of()
}
Expand Down

0 comments on commit 95549b1

Please sign in to comment.