lower visibility (#1807)

This commit is contained in:
erabii
2024-11-29 16:16:43 +02:00
committed by GitHub
parent d719303a13
commit 0076ee4fba
5 changed files with 7 additions and 8 deletions

View File

@@ -213,7 +213,6 @@ class KubernetesClientConfigMapPropertySourceLocatorTests {
assertThat(composite.getPropertySources()).hasSize(0);
assertThat(output.getOut()).contains("Failed to load source:");
}
}

View File

@@ -25,7 +25,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
*/
@SpringBootApplication
@EnableScheduling
public class Application {
class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);

View File

@@ -28,7 +28,7 @@ import org.springframework.stereotype.Service;
* @author wind57
*/
@Service
public class EndpointNameAndNamespaceService {
class EndpointNameAndNamespaceService {
private List<EndpointNameAndNamespace> result;

View File

@@ -31,11 +31,11 @@ import org.springframework.stereotype.Component;
* @author wind57
*/
@Component
public class HeartBeatListener implements ApplicationListener<ApplicationEvent> {
class HeartBeatListener implements ApplicationListener<ApplicationEvent> {
private final EndpointNameAndNamespaceService service;
public HeartBeatListener(EndpointNameAndNamespaceService service) {
HeartBeatListener(EndpointNameAndNamespaceService service) {
this.service = service;
}

View File

@@ -23,16 +23,16 @@ import org.springframework.web.bind.annotation.GetMapping;
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<EndpointNameAndNamespace> result() {
List<EndpointNameAndNamespace> result() {
return service.result();
}