From c5a194426786973ce3e697163c6a6031b9c0b71a Mon Sep 17 00:00:00 2001 From: Ada-Claire Date: Sat, 8 Oct 2022 20:58:04 -0700 Subject: [PATCH] Harmonize ConfigurationProperties code samples Rename the SomeProperties class so that it is consistent with other examples given within the Type-safe Configuration Properties. This ensures that readers can intuitively draw the conclusion that the MyProperties class is annotated with ConfigurationProperties. See gh-32644 --- .../{SomeProperties.java => MyProperties.java} | 2 +- .../usingannotatedtypes/MyService.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/{SomeProperties.java => MyProperties.java} (97%) diff --git a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/SomeProperties.java b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyProperties.java similarity index 97% rename from spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/SomeProperties.java rename to spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyProperties.java index cf46da4cffe..ea3c7d8d7ac 100644 --- a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/SomeProperties.java +++ b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyProperties.java @@ -16,7 +16,7 @@ package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes; -class SomeProperties { +class MyProperties { Object getRemoteAddress() { return null; diff --git a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyService.java b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyService.java index dfd2904d48c..f68d179c1a7 100644 --- a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyService.java +++ b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyService.java @@ -21,9 +21,9 @@ import org.springframework.stereotype.Service; @Service public class MyService { - private final SomeProperties properties; + private final MyProperties properties; - public MyService(SomeProperties properties) { + public MyService(MyProperties properties) { this.properties = properties; }