Merge pull request #2270 from ericdahl/docs-health-builder

* docs-health-builder:
  Update custom HealthIndicator documentation
This commit is contained in:
Phillip Webb 2014-12-31 18:55:14 -08:00
commit 161cb7ab8a
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}