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 dd5061697d
commit 6592b69d3b

View File

@@ -72,15 +72,15 @@ import org.springframework.web.client.RestOperations;
* .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) {
*
* }
* }