aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/java/net/URL.java
diff options
context:
space:
mode:
authorjzavgren <none@none>2013-03-05 09:50:53 -0500
committerjzavgren <none@none>2013-03-05 09:50:53 -0500
commit33a389f0d58bc271b47e2ddc23dc47ad17e502b7 (patch)
tree0939f8c7e14ec12afb9e47aa7537159f814bf758 /src/share/classes/java/net/URL.java
parent6164fd4c929b3c5f905f583ecf85ea67917f882c (diff)
downloadjdk8u_jdk-33a389f0d58bc271b47e2ddc23dc47ad17e502b7.tar.gz
4880778: URL final class has protected methods
Summary: The two set() methods have been defined to be package private. Reviewed-by: alanb, chegar, khazra
Diffstat (limited to 'src/share/classes/java/net/URL.java')
-rw-r--r--src/share/classes/java/net/URL.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/share/classes/java/net/URL.java b/src/share/classes/java/net/URL.java
index 6227103712..caa1d5964c 100644
--- a/src/share/classes/java/net/URL.java
+++ b/src/share/classes/java/net/URL.java
@@ -661,8 +661,8 @@ public final class URL implements java.io.Serializable {
* @param file the file on the host
* @param ref the internal reference in the URL
*/
- protected void set(String protocol, String host,
- int port, String file, String ref) {
+ void set(String protocol, String host, int port,
+ String file, String ref) {
synchronized (this) {
this.protocol = protocol;
this.host = host;
@@ -698,9 +698,9 @@ public final class URL implements java.io.Serializable {
* @param query the query part of this URL
* @since 1.3
*/
- protected void set(String protocol, String host, int port,
- String authority, String userInfo, String path,
- String query, String ref) {
+ void set(String protocol, String host, int port,
+ String authority, String userInfo, String path,
+ String query, String ref) {
synchronized (this) {
this.protocol = protocol;
this.host = host;