/[classpath]/classpath/java/net/SocketPermission.java
ViewVC logotype

Diff of /classpath/java/net/SocketPermission.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mkoch, Thu Nov 7 09:40:00 2002 UTC revision 1.9 by tromey, Thu Dec 5 02:01:37 2002 UTC
# Line 1  Line 1 
1  /* SocketPermission.java -- Class modeling permissions for socket operations  /* SocketPermission.java -- Class modeling permissions for socket operations
2     Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.     Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 166  public final class SocketPermission exte Line 166  public final class SocketPermission exte
166    public int hashCode()    public int hashCode()
167    {    {
168      int hash = 100;      int hash = 100;
169        if (hostport != null)
170      // FIXME: Get a real hash function        hash += hostport.hashCode();
171      for (int i = 0; i < hostport.length(); i++)      if (actions != null)
172        hash = hash + (int) hostport.charAt(i) * 7;        hash += actions.hashCode();
173        return hash;
     return (hash);  
174    }    }
175    
176    /**    /**

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26