Closes gh-11050
This commit is contained in:
Johnny Lim
2017-11-17 02:51:21 +09:00
committed by Stephane Nicoll
parent 54b54b7c30
commit e8563c54dd
13 changed files with 22 additions and 23 deletions

View File

@@ -63,6 +63,8 @@ import org.springframework.util.StringUtils;
public abstract class AnnotationEndpointDiscoverer<K, T extends Operation>
implements EndpointDiscoverer<T> {
private final Log logger = LogFactory.getLog(getClass());
private final ApplicationContext applicationContext;
private final Function<T, K> operationKeyFactory;
@@ -270,15 +272,12 @@ public abstract class AnnotationEndpointDiscoverer<K, T extends Operation>
if (msg == null || msg.startsWith(endpointInfo.getClass().getName())) {
// Possibly a lambda-defined listener which we could not resolve the
// generic event type for
Log logger = LogFactory.getLog(getClass());
if (logger.isDebugEnabled()) {
logger.debug("Non-matching info type for lister: " + filter, ex);
if (this.logger.isDebugEnabled()) {
this.logger.debug("Non-matching info type for filter: " + filter, ex);
}
return false;
}
else {
throw ex;
}
throw ex;
}
}

View File

@@ -37,7 +37,7 @@ import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.verify;
/**
* Tests fopr {@link CachingOperationInvokerAdvisor}.
* Tests for {@link CachingOperationInvokerAdvisor}.
*
* @author Phillip Webb
*/