@ -81,11 +78,16 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -81,11 +78,16 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -119,6 +121,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -119,6 +121,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -132,26 +135,20 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -132,26 +135,20 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -170,31 +167,18 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -170,31 +167,18 @@ public class GenericConversionService implements ConversionService, ConverterReg
logger.debug("Converted to "+StylerUtils.style(result));
}
returnresult;
}
publicStringtoString(){
@ -215,12 +199,14 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -215,12 +199,14 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -247,10 +233,10 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -247,10 +233,10 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -260,7 +246,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -260,7 +246,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -268,13 +254,13 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -268,13 +254,13 @@ public class GenericConversionService implements ConversionService, ConverterReg
if(logger.isTraceEnabled()){
logger.trace("Caching under "+key);
}
converterCache.put(key,converter);
this.converterCache.put(key,converter);
returnconverter;
}
if(logger.isTraceEnabled()){
logger.trace("Caching NO_MATCH under "+key);
}
converterCache.put(key,NO_MATCH);
this.converterCache.put(key,NO_MATCH);
returnnull;
}
}
@ -290,9 +276,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -290,9 +276,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -471,7 +455,9 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -471,7 +455,9 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -566,20 +552,20 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -566,20 +552,20 @@ public class GenericConversionService implements ConversionService, ConverterReg
logger.trace("Matching "+conditional);
}
if(conditional.matches(sourceType,targetType)){
if(logger.isDebugEnabled()){
logger.debug("Matched converter "+conditional);
if(logger.isTraceEnabled()){
logger.trace("Matched converter "+conditional);
}
returnconditional;
}
else{
if(logger.isDebugEnabled()){
logger.debug("Did not match converter "+conditional);
if(logger.isTraceEnabled()){
logger.trace("Did not match converter "+conditional);
@ -587,7 +573,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -587,7 +573,7 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -603,7 +589,8 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -603,7 +589,8 @@ public class GenericConversionService implements ConversionService, ConverterReg
}
}
}
privatestaticfinalclassConverterCacheKey{
privatefinalTypeDescriptorsourceType;
@ -615,20 +602,23 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -615,20 +602,23 @@ public class GenericConversionService implements ConversionService, ConverterReg