Skip to content

Commit f33de39

Browse files
committed
Fix checkstyle warnings
Signed-off-by: Thiago Henrique Hüpner <[email protected]>
1 parent 6ce625a commit f33de39

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

appserver/microprofile/health-glassfish/src/main/java/org/glassfish/microprofile/health/service/CollectHealthChecksExtension.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public CollectHealthChecksExtension() {
6060
}
6161
service = healthReporterService;
6262
}
63+
64+
@SuppressWarnings("unchecked")
6365
public <T> void processBeans(@Observes ProcessBean<T> beans) {
6466
Annotated annotated = beans.getAnnotated();
6567
boolean livenessPresent = annotated.isAnnotationPresent(Liveness.class);

appserver/microprofile/health/src/main/java/org/glassfish/microprofile/health/HealthReporter.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.glassfish.microprofile.health;
1717

18-
import jakarta.enterprise.inject.spi.CDI;
1918
import jakarta.inject.Singleton;
2019

2120
import java.util.Collection;
@@ -62,9 +61,21 @@ private static HealthCheckResponse buildHealthCheckResponse(String name, Excepti
6261
}
6362

6463
public enum ReportKind {
64+
/**
65+
* Return only health checks of kind {@link org.eclipse.microprofile.health.Liveness}
66+
*/
6567
LIVE,
68+
/**
69+
* Return only health checks of kind {@link org.eclipse.microprofile.health.Readiness}
70+
*/
6671
READY,
72+
/**
73+
* Return only health checks of kind {@link org.eclipse.microprofile.health.Startup}
74+
*/
6775
STARTED,
76+
/**
77+
* Return all health checks
78+
*/
6879
ALL;
6980

7081
private HealthCheckResponse.Status getEmptyResponse() {
@@ -117,7 +128,6 @@ public void addHealthCheck(String contextName, HealthCheckInfo healthCheck) {
117128
}
118129

119130
public void removeAllHealthChecksFrom(String contextName) {
120-
List<HealthCheckInfo> healthCheckInfos = applicationHealthChecks.get(contextName);
121131
applicationHealthChecks.remove(contextName);
122132
}
123133

0 commit comments

Comments
 (0)