commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1719118 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java
Date Thu, 10 Dec 2015 17:27:44 GMT
Author: krosenvold
Date: Thu Dec 10 17:27:43 2015
New Revision: 1719118

URL: http://svn.apache.org/viewvc?rev=1719118&view=rev
Log:
Updated javadoc

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java?rev=1719118&r1=1719117&r2=1719118&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/serialization/ValidatingObjectInputStream.java
Thu Dec 10 17:27:43 2015
@@ -59,6 +59,10 @@ public class ValidatingObjectInputStream
         super(input);
     }
 
+    /** Check that the classname conforms to requirements.
+     * @param name The class name
+     * @throws InvalidClassException when a non-accepted class is encountered
+     */
     private void validateClassName(String name) throws InvalidClassException {
         // Reject has precedence over accept
         for (ClassNameMatcher m : rejectMatchers) {
@@ -126,9 +130,9 @@ public class ValidatingObjectInputStream
     }
 
     /**
-     * Accept the wildcard specified classes for deserialization, 
+     * Accept the wildcard specified classes for deserialization,
      * unless they are otherwise rejected.
-     * 
+     *
      * @param patterns Wildcard filename patterns as defined by
      *                  {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String,
String) FilenameUtils.wildcardMatch}
      * @return this object



Mime
View raw message