You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dzmitry Shylovich (JIRA)" <ji...@apache.org> on 2015/08/25 13:00:47 UTC

[jira] [Updated] (CONFIGURATION-608) Method configure in ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder

     [ https://issues.apache.org/jira/browse/CONFIGURATION-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dzmitry Shylovich updated CONFIGURATION-608:
--------------------------------------------
    Description: 
I think configure method of ReloadingFileBasedConfigurationBuilder  should return ReloadingFileBasedConfigurationBuilder instead of FileBasedConfigurationBuilder otherwise I have to explicitly cast 

ReloadingFileBasedConfigurationBuilder a = (ReloadingFileBasedConfigurationBuilder<XMLConfiguration>)
                new ReloadingFileBasedConfigurationBuilder<>(XMLConfiguration.class).configure(params.xml().setFile(fileToDefaults));

  was:
I think configure method of ReloadingFileBasedConfigurationBuilder  should return ReloadingFileBasedConfigurationBuilder instead of FileBasedConfigurationBuilder otherwise I have to explicitly cast 

ReloadingFileBasedConfigurationBuilder a = (ReloadingFileBasedConfigurationBuilder<XMLConfiguration>)
                new ReloadingFileBasedConfigurationBuilder<>(XMLConfiguration.class)
                        .configure(params.xml()
                                .setFile(fileToDefaults));


> Method configure in ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-608
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-608
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: Dzmitry Shylovich
>            Priority: Minor
>
> I think configure method of ReloadingFileBasedConfigurationBuilder  should return ReloadingFileBasedConfigurationBuilder instead of FileBasedConfigurationBuilder otherwise I have to explicitly cast 
> ReloadingFileBasedConfigurationBuilder a = (ReloadingFileBasedConfigurationBuilder<XMLConfiguration>)
>                 new ReloadingFileBasedConfigurationBuilder<>(XMLConfiguration.class).configure(params.xml().setFile(fileToDefaults));



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)