Revert "Upgrade to Kotlin 1.4 M2"
This reverts commit 2a74eff10f.
Some regressions require to wait at least Kotlin 1.4 M3.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -139,7 +139,7 @@ class RequestParamMethodArgumentResolverKotlinTests {
|
||||
|
||||
@Test
|
||||
fun resolveNonNullableNotRequiredWithoutParameter() {
|
||||
assertThatExceptionOfType(NullPointerException::class.java).isThrownBy {
|
||||
assertThatExceptionOfType(TypeCastException::class.java).isThrownBy {
|
||||
resolver.resolveArgument(nonNullableParamNotRequired, null, webRequest, binderFactory) as String
|
||||
}
|
||||
}
|
||||
@@ -221,7 +221,7 @@ class RequestParamMethodArgumentResolverKotlinTests {
|
||||
request.method = HttpMethod.POST.name
|
||||
request.contentType = MediaType.MULTIPART_FORM_DATA_VALUE
|
||||
|
||||
assertThatExceptionOfType(NullPointerException::class.java).isThrownBy {
|
||||
assertThatExceptionOfType(TypeCastException::class.java).isThrownBy {
|
||||
resolver.resolveArgument(nonNullableMultipartParamNotRequired, null, webRequest, binderFactory) as MultipartFile
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user