George Scott created VFS-435:
--------------------------------

             Summary: 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


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

        

Reply via email to