Merge pull request #32644 from eurythmia
* pr/32644: Upgrade copyright year of changed files Harmonize ConfigurationProperties code samples Closes gh-32644
This commit is contained in:
commit
ea97e4ab87
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes;
|
||||
|
||||
class SomeProperties {
|
||||
class MyProperties {
|
||||
|
||||
Object getRemoteAddress() {
|
||||
return null;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue