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
6d2cf1d8
Commit
6d2cf1d8
authored
Dec 05, 2002
by
Tom Tromey
Committed by
Tom Tromey
Dec 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/net/SocketPermission.java (hashCode): Rewrote.
From-SVN: r59843
parent
9e1ab8c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
libjava/ChangeLog
+1
-8
libjava/java/net/SocketPermission.java
+6
-7
No files found.
libjava/ChangeLog
View file @
6d2cf1d8
2002
-
12
-
04
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
Makefile
.
in
:
Rebuilt
.
*
Makefile
.
am
(
nat_source_files
):
Added
natVMSecurityManager
,
natResourceBundle
.
*
java
/
util
/
ResourceBundle
.
java
(
Security
):
Removed
.
(
getCallingClassLoader
):
Now
native
.
*
java
/
util
/
natResourceBundle
.
cc
:
New
file
.
*
java
/
lang
/
natVMSecurityManager
.
cc
:
New
file
.
*
java
/
lang
/
VMSecurityManager
.
java
(
getClassContext
):
Now
native
.
*
java
/
net
/
SocketPermission
.
java
(
hashCode
):
Rewrote
.
2002
-
12
-
03
Mark
Wielaard
<
mark
@
klomp
.
org
>
...
...
libjava/java/net/SocketPermission.java
View file @
6d2cf1d8
/* SocketPermission.java -- Class modeling permissions for socket operations
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1998, 2000, 2001
, 2002
Free Software Foundation, Inc.
This file is part of GNU Classpath.
...
...
@@ -166,12 +166,11 @@ public final class SocketPermission extends Permission
public
int
hashCode
()
{
int
hash
=
100
;
// FIXME: Get a real hash function
for
(
int
i
=
0
;
i
<
hostport
.
length
();
i
++)
hash
=
hash
+
(
int
)
hostport
.
charAt
(
i
)
*
7
;
return
(
hash
);
if
(
hostport
!=
null
)
hash
+=
hostport
.
hashCode
();
if
(
actions
!=
null
)
hash
+=
actions
.
hashCode
();
return
hash
;
}
/**
...
...
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