test/jdk/java/io/Serializable/serialFilter/SerialFilterTest.java
changeset 58565 baa5969ecf34
parent 47423 4fc2a4a29f3d
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 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.
     7  * published by the Free Software Foundation.
   728      * the ObjectInputFilter to check that it has the expected length.
   728      * the ObjectInputFilter to check that it has the expected length.
   729      */
   729      */
   730     static class ReadResolveToArray implements Serializable, ObjectInputFilter {
   730     static class ReadResolveToArray implements Serializable, ObjectInputFilter {
   731         private static final long serialVersionUID = 123456789L;
   731         private static final long serialVersionUID = 123456789L;
   732 
   732 
       
   733         @SuppressWarnings("serial") /* Incorrect declarations are being tested */
   733         private final Object array;
   734         private final Object array;
   734         private final int length;
   735         private final int length;
   735 
   736 
   736         ReadResolveToArray(Object array, int length) {
   737         ReadResolveToArray(Object array, int length) {
   737             this.array = array;
   738             this.array = array;