From aa43f5e0374e13f8f0b1f0503080336a3a9219b1 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Wed, 31 Dec 2014 17:46:59 -0800 Subject: [PATCH] Update custom HealthIndicator documentation Update the custom HealthIndicator documentation to use the build() method rather than the old mechanism. Fixes gh-2270 --- .../src/main/asciidoc/production-ready-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index e42a8259c6..defbf0d659 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -223,9 +223,9 @@ additional details to be displayed. public Health health() { int errorCode = check(); // perform some specific health check if (errorCode != 0) { - return Health.down().withDetail("Error Code", errorCode); + return Health.down().withDetail("Error Code", errorCode).build(); } - return Health.up(); + return Health.up().build(); } }