Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57BEA173CD for ; Tue, 1 Sep 2015 14:25:46 +0000 (UTC) Received: (qmail 84495 invoked by uid 500); 1 Sep 2015 14:25:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 84411 invoked by uid 500); 1 Sep 2015 14:25:46 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 84329 invoked by uid 99); 1 Sep 2015 14:25:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 14:25:46 +0000 Date: Tue, 1 Sep 2015 14:25:46 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CONFIGURATION-608) Method configure in ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONFIGURATION-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger resolved CONFIGURATION-608. ---------------------------------------- Resolution: Fixed Fix Version/s: 2.0 Fixed in subversion in revision 1700568. > 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 > Fix For: 2.0 > > > I think configure method of ReloadingFileBasedConfigurationBuilder should return ReloadingFileBasedConfigurationBuilder instead of FileBasedConfigurationBuilder otherwise I have to explicitly cast > ReloadingFileBasedConfigurationBuilder a = (ReloadingFileBasedConfigurationBuilder) > new ReloadingFileBasedConfigurationBuilder<>(XMLConfiguration.class).configure(params.xml().setFile(fileToDefaults)); -- This message was sent by Atlassian JIRA (v6.3.4#6332)