Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ECE6A10676 for ; Wed, 2 Oct 2013 23:45:40 +0000 (UTC) Received: (qmail 27848 invoked by uid 500); 2 Oct 2013 23:45:40 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 27694 invoked by uid 500); 2 Oct 2013 23:45:39 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 27685 invoked by uid 99); 2 Oct 2013 23:45:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 23:45:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-we0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 23:45:32 +0000 Received: by mail-we0-f182.google.com with SMTP id t61so1467409wes.41 for ; Wed, 02 Oct 2013 16:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VSiOB3DqP2irTdjA7CJ+RHM4f54LsWuyr/LSm9mt2+c=; b=I8M+/lApVZcA6uSNRaeonyNtlzQswSUqA6npxDtTkNBIPN0Z0P5hKy+2MDfqJ6A7DM VJ3DKdavQ8sQ2fEQdCkbw8UEKoqTmWmTTuAJdRwM3VyQhBVCZMWwHDGvIJ+AA8H4grCy oF7fCQTHIZp4Om+dcplJq1zDmyJDY2NzFkFgRuTtVMq1OvLRCBkY2tc912op33SLzI+u TToeKfOrWalMH9T8DLUmG+zUzRQno6v16W7CXEasN9tsHk6XwTHKq4wl1RH0/9k/T0xJ Jkp+Fgpqcol2d+JfvclT+50YPA7casA8k2afZ5xRky7gtcgGDC8atSAuLRGbOtF/gJeK kQ+g== MIME-Version: 1.0 X-Received: by 10.180.79.163 with SMTP id k3mr4202895wix.25.1380757511900; Wed, 02 Oct 2013 16:45:11 -0700 (PDT) Received: by 10.194.24.99 with HTTP; Wed, 2 Oct 2013 16:45:11 -0700 (PDT) In-Reply-To: <20131002201230.2F3CD23888A6@eris.apache.org> References: <20131002201230.2F3CD23888A6@eris.apache.org> Date: Thu, 3 Oct 2013 00:45:11 +0100 Message-ID: Subject: Re: svn commit: r1528612 - /commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java From: sebb To: dev@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 2 October 2013 21:12, wrote: > Author: jlmonteiro > Date: Wed Oct 2 20:12:29 2013 > New Revision: 1528612 > > URL: http://svn.apache.org/r1528612 > Log: > Fixing configuration property typo > > Modified: > commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java > > Modified: commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java > URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java?rev=1528612&r1=1528611&r2=1528612&view=diff > ============================================================================== > --- commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java (original) > +++ commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java Wed Oct 2 20:12:29 2013 > @@ -35,7 +35,7 @@ public final class PluginRepository { > if (name == null) { > throw new IllegalArgumentException("plugin name can't be null"); > } > - if (!Configuration.is(name + "activated", true)) { > + if (!Configuration.is(name + ".activated", true)) { I assume that this string is used elsewhere within monitoring? If so, it should be defined once as a String constant (with Javadoc) and used throughout. Or there could be a method to convert a name by appending the suffix. > continue; > } > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org