Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
119d34b2
Commit
119d34b2
authored
Oct 29, 2003
by
Michael Koch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Somehow this didnt got commited due to full hard disk.
From-SVN: r73040
parent
b6a41a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
libjava/java/net/URLStreamHandler.java
+2
-6
No files found.
libjava/java/net/URLStreamHandler.java
View file @
119d34b2
...
...
@@ -480,12 +480,8 @@ public abstract class URLStreamHandler
if
(
host
.
length
()
!=
0
)
sb
.
append
(
"//"
).
append
(
host
);
// Note that this produces different results from JDK 1.2 as JDK 1.2
// ignores a non-default port if host is null or "". That is inconsistent
// with the spec since the result of this method is spec'ed so it can be
// used to construct a new URL that is equivalent to the original.
boolean
port_needed
=
port
>
0
&&
port
!=
getDefaultPort
();
if
(
port_needed
)
// Append port if port was in URL spec.
if
(
port
!=
-
1
)
sb
.
append
(
':'
).
append
(
port
);
sb
.
append
(
file
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment