8231859: Extra dash after the exception name in @throws clause of javadoc
authorigerasim
Wed, 16 Oct 2019 18:47:11 -0700
changeset 58659 4113f16d5109
parent 58658 55866aa5fb54
child 58660 7a81cc7ca25c
8231859: Extra dash after the exception name in @throws clause of javadoc Reviewed-by: weijun
src/java.base/share/classes/java/net/SocketPermission.java
src/java.base/share/classes/java/security/AllPermission.java
src/java.base/share/classes/java/security/BasicPermission.java
src/java.base/share/classes/java/security/PermissionCollection.java
src/java.base/share/classes/java/security/Policy.java
src/java.base/share/classes/java/util/PropertyPermission.java
src/java.management/share/classes/com/sun/jmx/mbeanserver/Introspector.java
--- a/src/java.base/share/classes/java/net/SocketPermission.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/net/SocketPermission.java	Wed Oct 16 18:47:11 2019 -0700
@@ -1367,10 +1367,10 @@
      *
      * @param permission the Permission object to add.
      *
-     * @throws    IllegalArgumentException - if the permission is not a
+     * @throws    IllegalArgumentException   if the permission is not a
      *                                       SocketPermission
      *
-     * @throws    SecurityException - if this SocketPermissionCollection object
+     * @throws    SecurityException   if this SocketPermissionCollection object
      *                                has been marked readonly
      */
     @Override
--- a/src/java.base/share/classes/java/security/AllPermission.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/security/AllPermission.java	Wed Oct 16 18:47:11 2019 -0700
@@ -178,10 +178,10 @@
      *
      * @param permission the Permission object to add.
      *
-     * @throws    IllegalArgumentException - if the permission is not a
+     * @throws    IllegalArgumentException   if the permission is not an
      *                                       AllPermission
      *
-     * @throws    SecurityException - if this AllPermissionCollection object
+     * @throws    SecurityException   if this AllPermissionCollection object
      *                                has been marked readonly
      */
 
--- a/src/java.base/share/classes/java/security/BasicPermission.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/security/BasicPermission.java	Wed Oct 16 18:47:11 2019 -0700
@@ -349,13 +349,13 @@
      *
      * @param permission the Permission object to add.
      *
-     * @throws    IllegalArgumentException - if the permission is not a
+     * @throws    IllegalArgumentException   if the permission is not a
      *                                       BasicPermission, or if
      *                                       the permission is not of the
      *                                       same Class as the other
      *                                       permissions in this collection.
      *
-     * @throws    SecurityException - if this BasicPermissionCollection object
+     * @throws    SecurityException   if this BasicPermissionCollection object
      *                                has been marked readonly
      */
     @Override
--- a/src/java.base/share/classes/java/security/PermissionCollection.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/security/PermissionCollection.java	Wed Oct 16 18:47:11 2019 -0700
@@ -107,9 +107,9 @@
      *
      * @param permission the Permission object to add.
      *
-     * @throws    SecurityException -  if this PermissionCollection object
+     * @throws    SecurityException    if this PermissionCollection object
      *                                 has been marked readonly
-     * @throws    IllegalArgumentException - if this PermissionCollection
+     * @throws    IllegalArgumentException   if this PermissionCollection
      *                object is a homogeneous collection and the permission
      *                is not of the correct type.
      */
--- a/src/java.base/share/classes/java/security/Policy.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/security/Policy.java	Wed Oct 16 18:47:11 2019 -0700
@@ -837,7 +837,7 @@
          *
          * @param permission the Permission object to add.
          *
-         * @throws    SecurityException - if this PermissionCollection object
+         * @throws    SecurityException   if this PermissionCollection object
          *                                has been marked readonly
          */
         @Override public void add(Permission permission) {
--- a/src/java.base/share/classes/java/util/PropertyPermission.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.base/share/classes/java/util/PropertyPermission.java	Wed Oct 16 18:47:11 2019 -0700
@@ -463,10 +463,10 @@
      *
      * @param permission the Permission object to add.
      *
-     * @throws    IllegalArgumentException - if the permission is not a
+     * @throws    IllegalArgumentException   if the permission is not a
      *                                       PropertyPermission
      *
-     * @throws    SecurityException - if this PropertyPermissionCollection
+     * @throws    SecurityException   if this PropertyPermissionCollection
      *                                object has been marked readonly
      */
     @Override
--- a/src/java.management/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Thu Oct 17 02:49:14 2019 +0200
+++ b/src/java.management/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Wed Oct 16 18:47:11 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2019, 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
@@ -450,7 +450,7 @@
      * @return nothing - this method always throw an exception.
      *         The return type makes it possible to write
      *         <pre> throw throwException(clazz,cause); </pre>
-     * @throws SecurityException - if cause is a SecurityException
+     * @throws SecurityException   if cause is a SecurityException
      * @throws NotCompliantMBeanException otherwise.
      **/
     static NotCompliantMBeanException throwException(Class<?> notCompliant,