Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-608

Method configure in ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            Dzmitry Shylovich Dzmitry Shylovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: