From b09d8ad0e6f32fa1fd3e0f850660ef3399087741 Mon Sep 17 00:00:00 2001 From: Vyom Tewari Date: Tue, 11 Oct 2016 15:12:40 +0530 Subject: [PATCH] 8163482: java.net.URLPermission.getActions() adds a trailing colon when header-names is empty Reviewed-by: chegar, dfuchs --- jdk/src/java.base/share/classes/java/net/URLPermission.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/net/URLPermission.java b/jdk/src/java.base/share/classes/java/net/URLPermission.java index 0c38008cb13..e78c7aee68c 100644 --- a/jdk/src/java.base/share/classes/java/net/URLPermission.java +++ b/jdk/src/java.base/share/classes/java/net/URLPermission.java @@ -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;