/[classpath]/classpath/java/util/PropertyPermission.java
ViewVC logotype

Diff of /classpath/java/util/PropertyPermission.java

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

revision 1.12 by robilad, Thu Apr 22 11:24:39 2004 UTC revision 1.13 by mkoch, Mon Feb 21 16:11:48 2005 UTC
# Line 1  Line 1 
1  /* PropertyPermission.java -- permission to get and set System properties  /* PropertyPermission.java -- permission to get and set System properties
2     Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc.     Copyright (C) 1999, 2000, 2002, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 154  public final class PropertyPermission ex Line 154  public final class PropertyPermission ex
154        actions = WRITE;        actions = WRITE;
155      else if ("read,write".equals(str) || "write,read".equals(str))      else if ("read,write".equals(str) || "write,read".equals(str))
156        actions = READ | WRITE;        actions = READ | WRITE;
157      else {      else
158        String lstr = str.toLowerCase();        {
159        if ("read".equals(lstr))          String lstr = str.toLowerCase();
160          actions = READ;          if ("read".equals(lstr))
161        else if ("write".equals(lstr))            actions = READ;
162          actions = WRITE;          else if ("write".equals(lstr))
163        else if ("read,write".equals(lstr) || "write,read".equals(lstr))            actions = WRITE;
164          actions = READ | WRITE;          else if ("read,write".equals(lstr) || "write,read".equals(lstr))
165        else            actions = READ | WRITE;
166          throw new IllegalArgumentException("illegal action " + str);          else
167      }            throw new IllegalArgumentException("illegal action " + str);
168          }
169    }    }
170    
171    /**    /**

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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