Skip to content

Commit

Permalink
Fix typos in the SerializationUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Dec 1, 2023
1 parent efc3637 commit bf2a391
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ public static void checkAllowedList(Class<?> clazz, Set<String> patterns) {
if (TRUST_ALL && ObjectUtils.isEmpty(patterns)) {
return;
}
if (clazz.isArray() || clazz.isPrimitive() || clazz.equals(String.class)
|| Number.class.isAssignableFrom(clazz)
if (clazz.isArray() || clazz.isPrimitive() || Number.class.isAssignableFrom(clazz)
|| String.class.equals(clazz)) {
return;
}
Expand All @@ -163,7 +162,7 @@ public static void checkAllowedList(Class<?> clazz, Set<String> patterns) {
}
}
throw new SecurityException("Attempt to deserialize unauthorized " + clazz
+ "; add allowed class name patterns to the message converter or, if you trust the message orginiator, "
+ "; add allowed class name patterns to the message converter or, if you trust the message originator, "
+ "set environment variable '"
+ TRUST_ALL_ENV + "' or system property '" + TRUST_ALL_PROP + "' to true");
}
Expand Down

0 comments on commit bf2a391

Please sign in to comment.