diff options
Diffstat (limited to 'libjava/java/net/URL.java')
-rw-r--r-- | libjava/java/net/URL.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index 729d96f..623f660 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -743,12 +743,11 @@ public final class URL implements Serializable this.host = host; this.userInfo = userInfo; this.port = port; - this.file = path; this.authority = authority; if (query == null) - this.file = file; + this.file = path; else - this.file = file + "?" + query; + this.file = path + "?" + query; this.ref = ref; hashCode = hashCode(); // Used for serialization. } |