Skip to content

Commit

Permalink
lower visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Nov 29, 2024
1 parent 5c637e5 commit fedca79
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
@SpringBootApplication
@EnableScheduling
public class Application {
class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
* @author wind57
*/
@Service
public class EndpointNameAndNamespaceService {
class EndpointNameAndNamespaceService {

private List<EndpointNameAndNamespace> result;

public List<EndpointNameAndNamespace> result() {
List<EndpointNameAndNamespace> result() {
return result;
}

public void setResult(List<EndpointNameAndNamespace> result) {
void setResult(List<EndpointNameAndNamespace> result) {
this.result = result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
* @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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EndpointNameAndNamespace> result() {
List<EndpointNameAndNamespace> result() {
return service.result();
}

Expand Down

0 comments on commit fedca79

Please sign in to comment.