fixed lookup log message (SPR-6746)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2928 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
d43abdd37c
commit
1dc7cd563c
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2009 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -450,19 +450,19 @@ public class GenericConversionService implements ConversionService, ConverterReg
|
||||||
for (ConditionalGenericConverter conditional : this.conditionalConverters) {
|
for (ConditionalGenericConverter conditional : this.conditionalConverters) {
|
||||||
if (conditional.matches(sourceType, targetType)) {
|
if (conditional.matches(sourceType, targetType)) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Converter lookup [MATCHED] " + conditional);
|
logger.debug("Conditional converter lookup [MATCHED] " + conditional);
|
||||||
}
|
}
|
||||||
return conditional;
|
return conditional;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Converter lookup [DID NOT MATCH] " + conditional);
|
logger.debug("Conditional converter lookup [DID NOT MATCH] " + conditional);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (logger.isDebugEnabled()) {
|
if (this.defaultConverter != null && logger.isDebugEnabled()) {
|
||||||
logger.debug("Converter lookup [MATCHED] " + this.defaultConverter);
|
logger.debug("Default converter lookup [MATCHED] " + this.defaultConverter);
|
||||||
}
|
}
|
||||||
return this.defaultConverter;
|
return this.defaultConverter;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue