RFR JDK 8 - doclint fixes to java.io.Object{Input, Output}Stream
Joe Darcy
joe.darcy at oracle.com
Thu Jul 25 07:13:28 UTC 2013
Hello,
Please review the fix below to add @throws tags to constructors in
java.io.Object{Input, Output}Stream.
Thanks,
-Joe
diff -r fd1b5adcfdf0 src/share/classes/java/io/ObjectInputStream.java
--- a/src/share/classes/java/io/ObjectInputStream.java Wed Jul 24
22:52:01 2013 +0100
+++ b/src/share/classes/java/io/ObjectInputStream.java Thu Jul 25
00:10:06 2013 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights
reserved.
+ * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights
reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -313,6 +313,7 @@
* @throws SecurityException if a security manager exists and its
* <code>checkPermission</code> method denies enabling
* subclassing.
+ * @throws IOException if an I/O error occurs while creating this
stream
* @see SecurityManager#checkPermission
* @see java.io.SerializablePermission
*/
diff -r fd1b5adcfdf0 src/share/classes/java/io/ObjectOutputStream.java
--- a/src/share/classes/java/io/ObjectOutputStream.java Wed Jul 24
22:52:01 2013 +0100
+++ b/src/share/classes/java/io/ObjectOutputStream.java Thu Jul 25
00:10:06 2013 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights
reserved.
+ * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights
reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -265,6 +265,7 @@
* @throws SecurityException if a security manager exists and its
* <code>checkPermission</code> method denies enabling
* subclassing.
+ * @throws IOException if an I/O error occurs while creating this
stream
* @see SecurityManager#checkPermission
* @see java.io.SerializablePermission
*/
More information about the core-libs-dev
mailing list