Skip to content

Commit c4ed7d5

Browse files
YuLuoZY945
andauthored
[chore] update code style and add some comment (apache#1975)
Signed-off-by: yuluo-yx <[email protected]> Co-authored-by: 东风 <[email protected]>
1 parent b368bb8 commit c4ed7d5

Some content is hidden

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

52 files changed

+60
-66
lines changed

common/src/main/java/org/apache/hertzbeat/common/cache/CacheFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* common cache factory
2424
*/
25-
public class CacheFactory {
25+
public final class CacheFactory {
2626
private CacheFactory() {}
2727

2828
private static final CommonCacheService<String, Object> NOTICE_CACHE =

common/src/main/java/org/apache/hertzbeat/common/cache/CaffeineCacheServiceImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.github.benmanes.caffeine.cache.Caffeine;
2222
import java.time.Duration;
2323

24-
2524
/**
2625
* caffeine cache impl
2726
*/

common/src/main/java/org/apache/hertzbeat/common/constants/CommonConstants.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ public interface CommonConstants {
353353
* status page component calculate method manual
354354
*/
355355
byte STATUS_PAGE_CALCULATE_METHOD_MANUAL = 1;
356-
357-
356+
358357
/**
359358
* status page incident state investigating
360359
*/

common/src/main/java/org/apache/hertzbeat/common/constants/SignConstants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public interface SignConstants {
2626

2727
String WELL_NO = "#";
2828

29-
3029
String LINE_FEED = "\n";
3130

3231
String CARRIAGE_RETURN = "\r";

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/Alert.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import org.springframework.data.annotation.LastModifiedDate;
4646
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
4747

48-
4948
/**
5049
* Alarm record entity
5150
*/

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/AlertConverge.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import org.springframework.data.annotation.LastModifiedDate;
4747
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
4848

49-
5049
/**
5150
* Alert Converge strategy entity
5251
*/

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/AlertDefine.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
import org.springframework.data.annotation.LastModifiedDate;
4848
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
4949

50-
51-
52-
5350
/**
5451
* Alarm Define Rule Entity
5552
*/

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/AlertDefineMonitorBind.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
import org.springframework.data.annotation.LastModifiedDate;
4444
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
4545

46-
47-
4846
/**
4947
* Alarm Threshold Relate Monitor Entity
5048
*/

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/AlertSilence.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
import org.springframework.data.annotation.LastModifiedDate;
4848
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
4949

50-
51-
5250
/**
5351
* Alert Silence strategy entity
5452
*/

common/src/main/java/org/apache/hertzbeat/common/entity/alerter/JsonMapAttributeConverter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package org.apache.hertzbeat.common.entity.alerter;
1919

20-
21-
2220
import com.fasterxml.jackson.core.type.TypeReference;
2321
import jakarta.persistence.AttributeConverter;
2422
import jakarta.persistence.Converter;

0 commit comments

Comments
 (0)