From 0076ee4fba24f890b614d9bcbc817ae9215e3f5b Mon Sep 17 00:00:00 2001 From: erabii Date: Fri, 29 Nov 2024 16:16:43 +0200 Subject: [PATCH] lower visibility (#1807) --- ...KubernetesClientConfigMapPropertySourceLocatorTests.java | 1 - .../cloud/kubernetes/fabric8/catalog/watch/Application.java | 2 +- .../catalog/watch/EndpointNameAndNamespaceService.java | 2 +- .../kubernetes/fabric8/catalog/watch/HeartBeatListener.java | 4 ++-- .../fabric8/catalog/watch/HeartbeatController.java | 6 +++--- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientConfigMapPropertySourceLocatorTests.java b/spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientConfigMapPropertySourceLocatorTests.java index 8a40326020..04bbefb870 100644 --- a/spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientConfigMapPropertySourceLocatorTests.java +++ b/spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientConfigMapPropertySourceLocatorTests.java @@ -213,7 +213,6 @@ public void locateShouldNotThrowExceptionOnFailureWhenFailFastIsDisabled(Capture assertThat(composite.getPropertySources()).hasSize(0); assertThat(output.getOut()).contains("Failed to load source:"); - } } diff --git a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Application.java b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Application.java index a3062c0981..fba6fd0712 100644 --- a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Application.java +++ b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Application.java @@ -25,7 +25,7 @@ */ @SpringBootApplication @EnableScheduling -public class Application { +class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); diff --git a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/EndpointNameAndNamespaceService.java b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/EndpointNameAndNamespaceService.java index c4a3e86d43..38b12ad248 100644 --- a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/EndpointNameAndNamespaceService.java +++ b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/EndpointNameAndNamespaceService.java @@ -28,7 +28,7 @@ * @author wind57 */ @Service -public class EndpointNameAndNamespaceService { +class EndpointNameAndNamespaceService { private List result; diff --git a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartBeatListener.java b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartBeatListener.java index 926c7b7f44..6ea65aae4f 100644 --- a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartBeatListener.java +++ b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartBeatListener.java @@ -31,11 +31,11 @@ * @author wind57 */ @Component -public class HeartBeatListener implements ApplicationListener { +class HeartBeatListener implements ApplicationListener { private final EndpointNameAndNamespaceService service; - public HeartBeatListener(EndpointNameAndNamespaceService service) { + HeartBeatListener(EndpointNameAndNamespaceService service) { this.service = service; } diff --git a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartbeatController.java b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartbeatController.java index f2889faacc..75870a17cf 100644 --- a/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartbeatController.java +++ b/spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/main/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/HeartbeatController.java @@ -23,16 +23,16 @@ import org.springframework.web.bind.annotation.RestController; @RestController -public class HeartbeatController { +class HeartbeatController { private final EndpointNameAndNamespaceService service; - public HeartbeatController(EndpointNameAndNamespaceService service) { + HeartbeatController(EndpointNameAndNamespaceService service) { this.service = service; } @GetMapping("/result") - public List result() { + List result() { return service.result(); }