Remove nullable from Kotlin example
Use `lateinit` instead of allowing NullPointerExceptions.
This commit is contained in:
parent
478c3d0313
commit
3cd9b77273
|
@ -52,7 +52,7 @@ class CsrfShowcaseTests {
|
|||
@Autowired
|
||||
private lateinit var context: WebApplicationContext
|
||||
|
||||
private var mvc: MockMvc? = null
|
||||
private lateinit var mvc: MockMvc
|
||||
|
||||
@BeforeEach
|
||||
fun setup() {
|
||||
|
|
Loading…
Reference in New Issue