Skip to content

Commit c5a1944

Browse files
Ch4nisnicoll
authored andcommitted
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
1 parent 954e874 commit c5a1944

File tree

2 files changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes;
1818

19-
class SomeProperties {
19+
class MyProperties {
2020

2121
Object getRemoteAddress() {
2222
return null;

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/externalconfig/typesafeconfigurationproperties/usingannotatedtypes/MyService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
@Service
2222
public class MyService {
2323

24-
private final SomeProperties properties;
24+
private final MyProperties properties;
2525

26-
public MyService(SomeProperties properties) {
26+
public MyService(MyProperties properties) {
2727
this.properties = properties;
2828
}
2929

0 commit comments

Comments
 (0)