src/java.base/share/classes/java/io/ObjectInputValidation.java
changeset 58242 94bb65cb37d3
parent 47216 71c04702a3d5
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
     1 /*
     1 /*
     2  * Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    37  */
    37  */
    38 public interface ObjectInputValidation {
    38 public interface ObjectInputValidation {
    39     /**
    39     /**
    40      * Validates the object.
    40      * Validates the object.
    41      *
    41      *
    42      * @exception InvalidObjectException If the object cannot validate itself.
    42      * @throws    InvalidObjectException If the object cannot validate itself.
    43      */
    43      */
    44     public void validateObject() throws InvalidObjectException;
    44     public void validateObject() throws InvalidObjectException;
    45 }
    45 }