mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-11 05:23:55 +08:00
* java/net/SocketPermission.java (hashCode): Rewrote.
From-SVN: r59843
This commit is contained in:
parent
9e1ab8c1a5
commit
6d2cf1d887
@ -1,13 +1,6 @@
|
||||
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>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user