You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "George Scott (JIRA)" <ji...@apache.org> on 2012/07/31 08:33:33 UTC
[jira] [Updated] (VFS-435) Typo in FileSystemConfigBuilder
[ https://issues.apache.org/jira/browse/VFS-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Scott updated VFS-435:
-----------------------------
Attachment: FileSystemConfigBuilder.java.patch
> Typo in FileSystemConfigBuilder
> -------------------------------
>
> Key: VFS-435
> URL: https://issues.apache.org/jira/browse/VFS-435
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: George Scott
> Priority: Minor
> Labels: patch
> Attachments: FileSystemConfigBuilder.java.patch
>
>
> In FileSystemConfigBuilder there are two references to PREFIX. These should probably be this.prefix.
> *** FileSystemConfigBuilder.java~ 2012-07-31 16:15:25.468750000 +1000
> --- FileSystemConfigBuilder.java 2012-07-31 16:16:49.218750000 +1000
> ***************
> *** 94,100 ****
> /** @since 2.0 */
> protected boolean hasObject(FileSystemOptions opts, String name)
> {
> ! return hasParam(opts, name) || System.getProperties().containsKey(PREFIX + name);
> }
> /** @since 2.0 */
> --- 94,100 ----
> /** @since 2.0 */
> protected boolean hasObject(FileSystemOptions opts, String name)
> {
> ! return hasParam(opts, name) || System.getProperties().containsKey(this.prefix + name);
> }
> /** @since 2.0 */
> ***************
> *** 115,121 ****
> Boolean value = (Boolean) getParam(opts, name);
> if (value == null)
> {
> ! String str = System.getProperty(PREFIX + name);
> if (str == null)
> {
> return defaultValue;
> --- 115,121 ----
> Boolean value = (Boolean) getParam(opts, name);
> if (value == null)
> {
> ! String str = System.getProperty(this.prefix + name);
> if (str == null)
> {
> return defaultValue;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira