Skip to content

Commit be9f4a8

Browse files
committed
typo
1 parent 167db92 commit be9f4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/context/TestcontainersBeanRegistrationAotProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registe
5252
String attributeName = TestcontainerFieldBeanDefinition.class.getName();
5353
Object field = bd.getAttribute(attributeName);
5454
if (field != null) {
55-
Assert.isInstanceOf(Field.class, field, "BeanDefinition attribute '" + attributeName
56-
+ "' value must be a type of '" + field.getClass().getName() + "'");
55+
Assert.isInstanceOf(Field.class, field,
56+
"BeanDefinition attribute '" + attributeName + "' value must be a type of '" + Field.class + "'");
5757
return BeanRegistrationAotContribution.withCustomCodeFragments(
5858
(codeFragments) -> new AotContribution(codeFragments, registeredBean, ((Field) field)));
5959
}

0 commit comments

Comments
 (0)