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

Method configure in ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: