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
This commit is contained in:
Ada-Claire 2022-10-08 20:58:04 -07:00 committed by Stephane Nicoll
parent 954e874d72
commit c5a1944267
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes; package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes;
class SomeProperties { class MyProperties {
Object getRemoteAddress() { Object getRemoteAddress() {
return null; return null;

View File

@ -21,9 +21,9 @@ import org.springframework.stereotype.Service;
@Service @Service
public class MyService { public class MyService {
private final SomeProperties properties; private final MyProperties properties;
public MyService(SomeProperties properties) { public MyService(MyProperties properties) {
this.properties = properties; this.properties = properties;
} }