Skip to content

Commit 3eccb06

Browse files
fix(health): add proper @deprecated metadata and javadoc for obsolete methods
1 parent bde74f1 commit 3eccb06

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/java/com/iemr/inventory/service/health/HealthService.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ private HealthCheckResult checkRedisHealthSync() {
178178
}
179179
}
180180

181+
/**
182+
* Deprecated: kept for backward compatibility, use synchronous versions instead.
183+
*
184+
* @deprecated Use {@link #checkMySQLHealthSync()} instead.
185+
*/
181186
@Deprecated(since = "3.6.0", forRemoval = true)
182187
private HealthCheckResult checkMySQLHealth() {
183188
CompletableFuture<HealthCheckResult> future = CompletableFuture.supplyAsync(
@@ -199,6 +204,11 @@ private HealthCheckResult checkMySQLHealth() {
199204
}
200205
}
201206

207+
/**
208+
* Deprecated: kept for backward compatibility, use synchronous versions instead.
209+
*
210+
* @deprecated Use {@link #checkRedisHealthSync()} instead.
211+
*/
202212
@Deprecated(since = "3.6.0", forRemoval = true)
203213
private HealthCheckResult checkRedisHealth() {
204214
CompletableFuture<HealthCheckResult> future = CompletableFuture.supplyAsync(

0 commit comments

Comments
 (0)