Skip to content

Commit

Permalink
Merge branch '2.6.x' into 2.7.x
Browse files Browse the repository at this point in the history
Closes gh-32818
  • Loading branch information
snicoll committed Oct 20, 2022
2 parents 6eb9998 + ea97e4a commit 13691f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
@@ -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.
Expand All @@ -16,7 +16,7 @@

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

class SomeProperties {
class MyProperties {

Object getRemoteAddress() {
return null;
Expand Down
@@ -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.
Expand All @@ -21,9 +21,9 @@
@Service
public class MyService {

private final SomeProperties properties;
private final MyProperties properties;

public MyService(SomeProperties properties) {
public MyService(MyProperties properties) {
this.properties = properties;
}

Expand Down
Expand Up @@ -16,7 +16,7 @@

package org.springframework.boot.docs.features.externalconfig.typesafeconfigurationproperties.usingannotatedtypes

class SomeProperties {
class MyProperties {

val remoteAddress: Any?
get() = null
Expand Down
Expand Up @@ -19,7 +19,7 @@ package org.springframework.boot.docs.features.externalconfig.typesafeconfigurat
import org.springframework.stereotype.Service

@Service
class MyService(val properties: SomeProperties) {
class MyService(val properties: MyProperties) {

fun openConnection() {
val server = Server(properties.remoteAddress)
Expand Down

0 comments on commit 13691f2

Please sign in to comment.