8163482: java.net.URLPermission.getActions() adds a trailing colon when header-names is empty
Reviewed-by: chegar, dfuchs
--- a/jdk/src/java.base/share/classes/java/net/URLPermission.java Tue Oct 11 09:11:34 2016 +0000
+++ b/jdk/src/java.base/share/classes/java/net/URLPermission.java Tue Oct 11 15:12:40 2016 +0530
@@ -217,7 +217,7 @@
* where method-names is the list of methods separated by commas
* and header-names is the list of permitted headers separated by commas.
* There is no white space in the returned String. If header-names is empty
- * then the colon separator will not be present.
+ * then the colon separator may not be present.
*/
public String getActions() {
return actions;