Skip to content

Commit 405b9b7

Browse files
committed
Merge branch '2.2.x'
Closes gh-19693
2 parents 550e042 + 3acf7b9 commit 405b9b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected FailureAnalysis analyze(Throwable rootFailure, NoSuchBeanDefinitionExc
123123
if (configurationProperties.isPresent()) {
124124
if (KotlinDetector.isKotlinType(declaringClass) && !KotlinDetector.isKotlinReflectPresent()) {
125125
action = String.format(
126-
"%s%nConsider adding a dependency on kotlin-reflect so that the contructor used for @%s can be located. Also, ensure that @%s is present on '%s' if you intended to use constructor-based "
126+
"%s%nConsider adding a dependency on kotlin-reflect so that the constructor used for @%s can be located. Also, ensure that @%s is present on '%s' if you intended to use constructor-based "
127127
+ "configuration property binding.",
128128
action, ConstructorBinding.class.getSimpleName(), ConstructorBinding.class.getSimpleName(),
129129
constructor.getName());

spring-boot-project/spring-boot-autoconfigure/src/test/kotlin/org/springframework/boot/autoconfigure/diagnostics/analyzer/KotlinNoSuchBeanFailureAnalyzerNoKotlinReflectTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class KotlinNoSuchBeanFailureAnalyzerNoKotlinReflectTests {
3131
assertThat(analysis!!.getAction()).startsWith(
3232
java.lang.String.format("Consider defining a bean of type '%s' in your configuration.", String::class.java!!.getName()))
3333
assertThat(analysis!!.getAction()).contains(java.lang.String.format(
34-
"Consider adding a dependency on kotlin-reflect so that the contructor used for @ConstructorBinding can be located. Also, ensure that @ConstructorBinding is present on '%s' ", ConstructorBoundProperties::class.java!!.getName()))
34+
"Consider adding a dependency on kotlin-reflect so that the constructor used for @ConstructorBinding can be located. Also, ensure that @ConstructorBinding is present on '%s' ", ConstructorBoundProperties::class.java!!.getName()))
3535
}
3636

3737
private fun createFailure(config: Class<*>, vararg environment: String): FatalBeanException? {

0 commit comments

Comments
 (0)