Skip to content

Commit 44a8f7b

Browse files
author
YuLuo
authored
[chore] optimize manager code style (apache#1993)
Signed-off-by: yuluo-yx <[email protected]>
1 parent 1dbfc2b commit 44a8f7b

File tree

44 files changed

+23
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+23
-69
lines changed

manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/AbstractAlertNotifyHandlerImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import org.springframework.web.client.RestTemplate;
4444

4545
/**
46+
* Abstract alert notify handler implementation.
4647
*/
4748
@Slf4j
4849
abstract class AbstractAlertNotifyHandlerImpl implements AlertNotifyHandler {
@@ -128,5 +129,3 @@ public void onEvent(SystemConfigChangeEvent event) {
128129
this.bundle = ResourceBundleUtil.getBundle("alerter");
129130
}
130131
}
131-
132-

manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ private static class GotifyWebHookDto {
9292
private String message;
9393
private Extras extras;
9494

95-
9695
@Data
9796
public static class Extras {
9897
@JsonProperty("client::display")
@@ -104,6 +103,5 @@ public static class ClientDisplay {
104103
private String contentType;
105104
}
106105

107-
108106
}
109107
}

manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,4 @@ private static class ServerChanWebHookDto {
9494

9595
}
9696

97-
9897
}

manager/src/main/java/org/apache/hertzbeat/manager/controller/I18nController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
import org.springframework.web.bind.annotation.RestController;
3333

3434
/**
35-
* Internationalization I 18 N
36-
* 国际化I18N
35+
* Internationalization I18N
3736
*/
3837
@Tag(name = "I18N International Resource API")
3938
@RestController

manager/src/main/java/org/apache/hertzbeat/manager/controller/MonitorsController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050

5151
/**
5252
* Monitor and manage batch API
53-
* 监控管理批量API
5453
*/
5554
@Tag(name = "Monitor Manage Batch API")
5655
@RestController

manager/src/main/java/org/apache/hertzbeat/manager/controller/NoticeConfigController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import org.springframework.web.bind.annotation.RequestParam;
4545
import org.springframework.web.bind.annotation.RestController;
4646

47-
4847
/**
4948
* Message Notification Configuration API
5049
*/

manager/src/main/java/org/apache/hertzbeat/manager/controller/StatusPageController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
@RequestMapping(value = "/api/status/page", produces = {APPLICATION_JSON_VALUE})
4848
public class StatusPageController {
4949

50-
5150
@Autowired
5251
private StatusPageService statusPageService;
5352

manager/src/main/java/org/apache/hertzbeat/manager/controller/StatusPagePublicController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
@RequestMapping(value = "/api/status/page/public", produces = {APPLICATION_JSON_VALUE})
4343
public class StatusPagePublicController {
4444

45-
4645
@Autowired
4746
private StatusPageService statusPageService;
4847

manager/src/main/java/org/apache/hertzbeat/manager/dao/CollectorDao.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
2424
import org.springframework.data.jpa.repository.Modifying;
2525

26-
2726
/**
2827
* Collector repository
2928
*/

manager/src/main/java/org/apache/hertzbeat/manager/dao/CollectorMonitorBindDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
2626
import org.springframework.data.jpa.repository.Modifying;
2727

28-
2928
/**
3029
* CollectorMonitorBind repository
3130
*/
3231
public interface CollectorMonitorBindDao extends JpaRepository<CollectorMonitorBind, Long>, JpaSpecificationExecutor<CollectorMonitorBind> {
3332

34-
3533
/**
3634
* find monitors by collector
3735
* @param collector collector

0 commit comments

Comments
 (0)