Skip to content

Commit eb162b8

Browse files
committed
Updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1719118 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6393cae commit eb162b8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public ValidatingObjectInputStream(InputStream input) throws IOException {
5959
super(input);
6060
}
6161

62+
/** Check that the classname conforms to requirements.
63+
* @param name The class name
64+
* @throws InvalidClassException when a non-accepted class is encountered
65+
*/
6266
private void validateClassName(String name) throws InvalidClassException {
6367
// Reject has precedence over accept
6468
for (ClassNameMatcher m : rejectMatchers) {
@@ -126,9 +130,9 @@ public ValidatingObjectInputStream reject(Class<?>... classes) {
126130
}
127131

128132
/**
129-
* Accept the wildcard specified classes for deserialization,
133+
* Accept the wildcard specified classes for deserialization,
130134
* unless they are otherwise rejected.
131-
*
135+
*
132136
* @param patterns Wildcard filename patterns as defined by
133137
* {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}
134138
* @return this object

0 commit comments

Comments
 (0)