@ -124,10 +125,13 @@ public class FormattingConversionService extends GenericConversionService
@@ -124,10 +125,13 @@ public class FormattingConversionService extends GenericConversionService
@ -159,7 +163,7 @@ public class FormattingConversionService extends GenericConversionService
@@ -159,7 +163,7 @@ public class FormattingConversionService extends GenericConversionService
@ -169,6 +173,9 @@ public class FormattingConversionService extends GenericConversionService
@@ -169,6 +173,9 @@ public class FormattingConversionService extends GenericConversionService
catch(ParseExceptionex){
thrownewIllegalArgumentException("Unable to parse '"+text+"'",ex);
}
if(result==null){
thrownewIllegalStateException("Parsers are not allowed to return null");
@ -166,6 +166,9 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -166,6 +166,9 @@ public class GenericConversionService implements ConversionService, ConverterReg
if(sourceType==TypeDescriptor.NULL){
Assert.isTrue(source==null,"The value must be null if sourceType == TypeDescriptor.NULL");
logger.debug("Converted to "+StylerUtils.style(result));
}
@ -178,15 +181,12 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -178,15 +181,12 @@ public class GenericConversionService implements ConversionService, ConverterReg
logger.debug("Converted to "+StylerUtils.style(result));
}
@ -218,18 +218,12 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -218,18 +218,12 @@ public class GenericConversionService implements ConversionService, ConverterReg
newIllegalArgumentException("A null value cannot be assigned to a primitive type"));
}
returnnull;
}
@ -462,10 +456,10 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -462,10 +456,10 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -481,6 +475,26 @@ public class GenericConversionService implements ConversionService, ConverterReg
@@ -481,6 +475,26 @@ public class GenericConversionService implements ConversionService, ConverterReg
@ -51,8 +51,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {
@@ -51,8 +51,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {
@ -60,8 +59,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {
@@ -60,8 +59,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {
@ -69,8 +67,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {
@@ -69,8 +67,7 @@ final class IdToEntityConverter implements ConditionalGenericConverter {