Skip to content

Commit 2916da3

Browse files
PascalSchumacherfmbenhassine
authored andcommitted
Improve formatting of IllegalArgumentException message thrown by DefaultExecutionContextSerializer
1 parent e0f78d1 commit 2916da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/DefaultExecutionContextSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public void serialize(Map<String, Object> context, OutputStream out) throws IOEx
6060
Assert.notNull(value, "A null value was found");
6161
if (!(value instanceof Serializable)) {
6262
throw new IllegalArgumentException(
63-
"Value: [ " + value + "must be serializable."
64-
+ "Object of class [" + value.getClass().getName()
63+
"Value: [" + value + "] must be serializable. "
64+
+ "Object of class: [" + value.getClass().getName()
6565
+ "] must be an instance of " + Serializable.class);
6666
}
6767
}

0 commit comments

Comments
 (0)