From fedca79cb8763872468765b464cdb8398974a134 Mon Sep 17 00:00:00 2001 From: wind57 Date: Fri, 29 Nov 2024 15:38:47 +0200 Subject: [PATCH] lower visibility --- .../cloud/kubernetes/fabric8/catalog/watch/Application.java | 2 +- .../catalog/watch/EndpointNameAndNamespaceService.java | 6 +++--- .../kubernetes/fabric8/catalog/watch/HeartBeatListener.java | 4 ++-- .../fabric8/catalog/watch/HeartbeatController.java | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) 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..3e18d385ac 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,15 +28,15 @@ * @author wind57 */ @Service -public class EndpointNameAndNamespaceService { +class EndpointNameAndNamespaceService { private List result; - public List result() { + List result() { return result; } - public void setResult(List result) { + void setResult(List result) { this.result = 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(); }