Parcourir la source

Remove nullable from Kotlin example

Use `lateinit` instead of allowing NullPointerExceptions.
Stian Jørgensrud il y a 1 an
Parent
commit
3cd9b77273
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc

+ 1 - 1
docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc

@@ -52,7 +52,7 @@ class CsrfShowcaseTests {
     @Autowired
     @Autowired
     private lateinit var context: WebApplicationContext
     private lateinit var context: WebApplicationContext
 
 
-    private var mvc: MockMvc? = null
+    private lateinit var mvc: MockMvc
 
 
     @BeforeEach
     @BeforeEach
     fun setup() {
     fun setup() {