Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -49,7 +49,7 @@ import java.security.PrivilegedAction;
|
||||
* String port = AccessController.doPrivileged(action);
|
||||
* </code>
|
||||
*/
|
||||
public class GetPropertyAction implements PrivilegedAction
|
||||
public class GetPropertyAction implements PrivilegedAction<String>
|
||||
{
|
||||
String name;
|
||||
String value = null;
|
||||
@@ -68,7 +68,7 @@ public class GetPropertyAction implements PrivilegedAction
|
||||
setParameters(propName, defaultValue);
|
||||
}
|
||||
|
||||
public Object run()
|
||||
public String run()
|
||||
{
|
||||
return System.getProperty(name, value);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ import java.security.Security;
|
||||
* String passwd = AccessController.doPrivileged(action);
|
||||
* </code>
|
||||
*/
|
||||
public class GetSecurityPropertyAction implements PrivilegedAction
|
||||
public class GetSecurityPropertyAction implements PrivilegedAction<String>
|
||||
{
|
||||
private String name;
|
||||
private String value;
|
||||
@@ -83,7 +83,7 @@ public class GetSecurityPropertyAction implements PrivilegedAction
|
||||
return this;
|
||||
}
|
||||
|
||||
public Object run()
|
||||
public String run()
|
||||
{
|
||||
String val = Security.getProperty(name);
|
||||
if (val == null)
|
||||
|
||||
Reference in New Issue
Block a user