This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit c7c71bf603c2c4117aa3ae02db8efc5e56933ed5 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Oct 19 07:33:30 2023 -0400 Better internal message name --- .../apache/commons/io/serialization/ValidatingObjectInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java b/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java index d2f098b9..9d16dfe8 100644 --- a/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java +++ b/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java @@ -172,7 +172,7 @@ public class ValidatingObjectInputStream extends ObjectInputStream { @Override protected Class<?> resolveClass(final ObjectStreamClass osc) throws IOException, ClassNotFoundException { - validateClassName(osc.getName()); + checkClassName(osc.getName()); return super.resolveClass(osc); } @@ -182,7 +182,7 @@ public class ValidatingObjectInputStream extends ObjectInputStream { * @param name The class name * @throws InvalidClassException when a non-accepted class is encountered */ - private void validateClassName(final String name) throws InvalidClassException { + private void checkClassName(final String name) throws InvalidClassException { // Reject has precedence over accept for (final ClassNameMatcher m : rejectMatchers) { if (m.matches(name)) {