8163482: java.net.URLPermission.getActions() adds a trailing colon when header-names is empty

Reviewed-by: chegar, dfuchs
This commit is contained in:
Vyom Tewari 2016-10-11 15:12:40 +05:30
parent 9c0a3e6ca9
commit b09d8ad0e6

View File

@ -217,7 +217,7 @@ public final class URLPermission extends Permission {
* 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;