[ 
https://issues.apache.org/jira/browse/CONFIGURATION-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715380#comment-14715380
 ] 

Oliver Heger commented on CONFIGURATION-608:
--------------------------------------------

Yes, you are right. The return type will be adapted. Thank you for spotting 
this!

> 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)

Reply via email to