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 |
|
|
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 |
/** |
/** |