GetPropertyAction.java (setParameters): Renamed from 'setName'.
2004-07-28 Bryce McKinlay <mckinlay@redhat.com> * gnu/java/security/action/GetPropertyAction.java (setParameters): Renamed from 'setName'. New 2-argument form with default value. (run): Pass default 'value' parameter to System.getProperty(). * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc typos. * gnu/java/net/protocol/http/Connection.java: Use 'setParameters' not 'setName'. From-SVN: r85274
This commit is contained in:
parent
1fd0ec3576
commit
64d696b6da
4 changed files with 33 additions and 9 deletions
libjava/gnu/java/net/protocol/http
|
@ -97,7 +97,7 @@ public final class Connection extends HttpURLConnection
|
|||
if (proxyHost != null)
|
||||
{
|
||||
proxyInUse = true;
|
||||
getProperty.setName("http.proxyPort");
|
||||
getProperty.setParameters("http.proxyPort");
|
||||
port = (String) AccessController.doPrivileged(getProperty);
|
||||
if (port != null)
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ public final class Connection extends HttpURLConnection
|
|||
}
|
||||
}
|
||||
|
||||
getProperty.setName("http.agent");
|
||||
getProperty.setParameters("http.agent");
|
||||
userAgent = (String) AccessController.doPrivileged(getProperty);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue