Return-Path: Delivered-To: apmail-maven-commits-archive@www.apache.org Received: (qmail 50706 invoked from network); 2 Mar 2009 16:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 16:48:53 -0000 Received: (qmail 3969 invoked by uid 500); 2 Mar 2009 16:48:53 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 3925 invoked by uid 500); 2 Mar 2009 16:48:52 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 3916 invoked by uid 99); 2 Mar 2009 16:48:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 08:48:52 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 16:48:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A709323888A5; Mon, 2 Mar 2009 16:48:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r749355 - /maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java Date: Mon, 02 Mar 2009 16:48:29 -0000 To: commits@maven.apache.org From: bentmann@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090302164829.A709323888A5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bentmann Date: Mon Mar 2 16:48:29 2009 New Revision: 749355 URL: http://svn.apache.org/viewvc?rev=749355&view=rev Log: o Generified code Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java?rev=749355&r1=749354&r2=749355&view=diff ============================================================================== --- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java (original) +++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java Mon Mar 2 16:48:29 2009 @@ -32,11 +32,11 @@ private final Properties executionProperties; - List explicitlyActive; + private List explicitlyActive; - List explicitlyInactive; + private List explicitlyInactive; - private List activeByDefault; + private List activeByDefault; public ProfileActivationContext( Properties executionProperties, boolean isCustomActivatorFailureSuppressed ) { @@ -59,32 +59,32 @@ isCustomActivatorFailureSuppressed = suppressed; } - public List getExplicitlyActiveProfileIds() + public List getExplicitlyActiveProfileIds() { if ( explicitlyActive == null ) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return explicitlyActive; } - public void setExplicitlyActiveProfileIds( List active ) + public void setExplicitlyActiveProfileIds( List active ) { explicitlyActive = active; } - public List getExplicitlyInactiveProfileIds() + public List getExplicitlyInactiveProfileIds() { if ( explicitlyInactive == null ) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return explicitlyInactive; } - public void setExplicitlyInactiveProfileIds( List inactive ) + public void setExplicitlyInactiveProfileIds( List inactive ) { explicitlyInactive = inactive; } @@ -93,7 +93,7 @@ { if ( explicitlyActive == null ) { - explicitlyActive = new ArrayList(); + explicitlyActive = new ArrayList(); } explicitlyActive.add( profileId ); @@ -103,7 +103,7 @@ { if ( explicitlyInactive == null ) { - explicitlyInactive = new ArrayList(); + explicitlyInactive = new ArrayList(); } explicitlyInactive.add( profileId ); @@ -119,11 +119,11 @@ return ( explicitlyInactive != null ) && explicitlyInactive.contains( profileId ); } - public List getActiveByDefaultProfileIds() + public List getActiveByDefaultProfileIds() { if ( activeByDefault == null ) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return activeByDefault; @@ -138,13 +138,13 @@ { if ( activeByDefault == null ) { - activeByDefault = new ArrayList(); + activeByDefault = new ArrayList(); } activeByDefault.add( profileId ); } - public void setActiveByDefaultProfileIds( List activeByDefault ) + public void setActiveByDefaultProfileIds( List activeByDefault ) { this.activeByDefault = activeByDefault; }