Fix Javadoc example code in SecretLeaseContainer.

Original pull request: gh-209.
Closes gh-207.
This commit is contained in:
Michael Bell
2018-03-02 07:48:28 -08:00
committed by Mark Paluch
parent 087d665c39
commit a188ff1234

View File

@@ -73,15 +73,15 @@ import org.springframework.web.client.HttpStatusCodeException;
* .requestRotatingSecret("mysql/creds/my-role");
* container.addLeaseListener(new LeaseListenerAdapter() {
* @Override
* public void onLeaseEvent(LeaseEvent leaseEvent) {
* public void onLeaseEvent(SecretLeaseEvent secretLeaseEvent) {
*
* if (requestedSecret == leaseEvent.getSource()) {
* if (requestedSecret == secretLeaseEvent.getSource()) {
*
* if (leaseEvent instanceof LeaseCreatedEvent) {
* if (secretLeaseEvent instanceof SecretLeaseCreatedEvent) {
*
* }
*
* if (leaseEvent instanceof LeaseExpiredEvent) {
* if (secretLeaseEvent instanceof SecretLeaseExpiredEvent) {
*
* }
* }