equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2013, 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 |
263 * permission to ensure it's ok to enable subclassing. |
263 * permission to ensure it's ok to enable subclassing. |
264 * |
264 * |
265 * @throws SecurityException if a security manager exists and its |
265 * @throws SecurityException if a security manager exists and its |
266 * <code>checkPermission</code> method denies enabling |
266 * <code>checkPermission</code> method denies enabling |
267 * subclassing. |
267 * subclassing. |
|
268 * @throws IOException if an I/O error occurs while creating this stream |
268 * @see SecurityManager#checkPermission |
269 * @see SecurityManager#checkPermission |
269 * @see java.io.SerializablePermission |
270 * @see java.io.SerializablePermission |
270 */ |
271 */ |
271 protected ObjectOutputStream() throws IOException, SecurityException { |
272 protected ObjectOutputStream() throws IOException, SecurityException { |
272 SecurityManager sm = System.getSecurityManager(); |
273 SecurityManager sm = System.getSecurityManager(); |