Improve formatting of IllegalArgumentException message thrown by DefaultExecutionContextSerializer

This commit is contained in:
Pascal Schumacher
2019-12-25 15:00:31 +01:00
committed by Mahmoud Ben Hassine
parent e0f78d1504
commit 2916da30dd

View File

@@ -60,8 +60,8 @@ public class DefaultExecutionContextSerializer implements ExecutionContextSerial
Assert.notNull(value, "A null value was found");
if (!(value instanceof Serializable)) {
throw new IllegalArgumentException(
"Value: [ " + value + "must be serializable."
+ "Object of class [" + value.getClass().getName()
"Value: [" + value + "] must be serializable. "
+ "Object of class: [" + value.getClass().getName()
+ "] must be an instance of " + Serializable.class);
}
}