Skip to content

Commit 3cd9b77

Browse files
Sti2ndsjohnr
authored andcommitted
Remove nullable from Kotlin example
Use `lateinit` instead of allowing NullPointerExceptions.
1 parent 478c3d0 commit 3cd9b77

File tree

1 file changed

+1
-1
lines changed
  • docs/modules/ROOT/pages/servlet/test/mockmvc

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CsrfShowcaseTests {
5252
@Autowired
5353
private lateinit var context: WebApplicationContext
5454
55-
private var mvc: MockMvc? = null
55+
private lateinit var mvc: MockMvc
5656
5757
@BeforeEach
5858
fun setup() {

0 commit comments

Comments
 (0)