test/jdk/java/io/Serializable/primitiveClasses/PrimitiveClasses.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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.
    28 
    28 
    29 import java.io.*;
    29 import java.io.*;
    30 
    30 
    31 public class PrimitiveClasses {
    31 public class PrimitiveClasses {
    32     public static void main(String[] args) throws Exception {
    32     public static void main(String[] args) throws Exception {
    33         Class[] primClasses = new Class[] {
    33         Class<?>[] primClasses = {
    34             boolean.class, byte.class, char.class, short.class,
    34             boolean.class, byte.class, char.class, short.class,
    35             int.class, long.class, float.class, double.class, void.class
    35             int.class, long.class, float.class, double.class, void.class
    36         };
    36         };
    37 
    37 
    38         ByteArrayOutputStream bout = new ByteArrayOutputStream();
    38         ByteArrayOutputStream bout = new ByteArrayOutputStream();