diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/PropertyPermission.java --- a/src/java.base/share/classes/java/util/PropertyPermission.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/PropertyPermission.java Tue Sep 24 09:43:43 2019 +0100 @@ -54,10 +54,10 @@ * *
System.getProperty
to
+ * System.setProperty
to
+ *
@@ -149,9 +149,9 @@
* @param name the name of the PropertyPermission.
* @param actions the actions string.
*
- * @throws NullPointerException if name
is null
.
- * @throws IllegalArgumentException if name
is empty or if
- * actions
is invalid.
+ * @throws NullPointerException if {@code name} is {@code null}.
+ * @throws IllegalArgumentException if {@code name} is empty or if
+ * {@code actions} is invalid.
*/
public PropertyPermission(String name, String actions) {
super(name,actions);
@@ -223,7 +223,7 @@
/**
* Returns the hash code value for this object.
* The hash code used is the hash code of this permissions name, that is,
- * getName().hashCode()
, where getName
is
+ * {@code getName().hashCode()}, where {@code getName} is
* from the Permission superclass.
*
* @return a hash code value for this object.
@@ -350,7 +350,7 @@
* Returns the "canonical string representation" of the actions.
* That is, this method always returns present actions in the following order:
* read, write. For example, if this PropertyPermission object
- * allows both write and read actions, a call to getActions
+ * allows both write and read actions, a call to {@code getActions}
* will return the string "read,write".
*
* @return the canonical string representation of the actions.