From ce46170a0436d117cf13bed27fb7589e6557fb79 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 3 Oct 2022 10:15:38 +0200 Subject: [PATCH] Avoid using org.springframework.boot --- .../org/springframework/core/test/tools/SourceFileTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java b/spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java index 639d9ecf24a..5280c9f7952 100644 --- a/spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java +++ b/spring-core-test/src/test/java/org/springframework/core/test/tools/SourceFileTests.java @@ -152,8 +152,8 @@ class SourceFileTests { package com.example; public record RecordProperties( - @org.springframework.boot.context.properties.bind.DefaultValue("default-value-1") String property1, - @org.springframework.boot.context.properties.bind.DefaultValue("default-value-2") String property2) { + @org.springframework.lang.NonNull("test") String property1, + @org.springframework.lang.NonNull("test") String property2) { } """); assertThat(sourceFile.getClassName()).isEqualTo("com.example.RecordProperties");