Skip to content

Commit

Permalink
Add deprecated annotations to some constants to warn users of an even…
Browse files Browse the repository at this point in the history
…tual change in value
  • Loading branch information
tjquinno committed Oct 8, 2024
1 parent abada14 commit 57777ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,20 @@ public class DiskSpaceHealthCheck implements HealthCheck {

/**
* Full configuration key for path, when configured through MicroProfile config.
*
* @deprecated The value will change to {@value CURRENT_CONFIG_KEY_PATH} in a future release
*/
@Deprecated(since = "3.2.11")
public static final String CONFIG_KEY_PATH = HealthChecks.DEPRECATED_CONFIG_KEY_BUILT_IN_HEALTH_CHECKS_PREFIX
+ "." + CONFIG_KEY_DISKSPACE_PREFIX
+ "." + CONFIG_KEY_PATH_SUFFIX;

/**
* Full configuration key for threshold percent, when configured through Microprofile config.
*
* @deprecated The value will change to {@value CURRENT_CONFIG_KEY_THRESHOLD_PERCENT} in future release
*/
@Deprecated(since = "3.2.11")
public static final String CONFIG_KEY_THRESHOLD_PERCENT = HealthChecks.DEPRECATED_CONFIG_KEY_BUILT_IN_HEALTH_CHECKS_PREFIX
+ "." + CONFIG_KEY_DISKSPACE_PREFIX
+ "." + CONFIG_KEY_THRESHOLD_PERCENT_SUFFIX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public class HeapMemoryHealthCheck implements HealthCheck {

/**
* Config property key for heap memory threshold.
*
* @deprecated The value will change to {@value #CURRENT_CONFIG_KEY_THRESHOLD_PERCENT} in a future release
*/
@Deprecated(since = "3.2.11")
public static final String CONFIG_KEY_THRESHOLD_PERCENT = HealthChecks.DEPRECATED_CONFIG_KEY_BUILT_IN_HEALTH_CHECKS_PREFIX
+ "." + CONFIG_KEY_HEAP_PREFIX
+ "." + CONFIG_KEY_THRESHOLD_PERCENT_SUFFIX;
Expand Down

0 comments on commit 57777ec

Please sign in to comment.