From 30f5d777c1d43a959d06f1689490407ce483984d Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 2 Mar 2009 16:48:29 +0000 Subject: [PATCH] o Generified code git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749355 13f79535-47bb-0310-9956-ffa450edef68 --- .../project/ProfileActivationContext.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java b/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java index 9c1e9f1e76..b09ce6a65d 100644 --- a/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java +++ b/maven-project/src/main/java/org/apache/maven/project/ProfileActivationContext.java @@ -32,11 +32,11 @@ public class ProfileActivationContext 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 @@ public class ProfileActivationContext 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 @@ public class ProfileActivationContext { if ( explicitlyActive == null ) { - explicitlyActive = new ArrayList(); + explicitlyActive = new ArrayList(); } explicitlyActive.add( profileId ); @@ -103,7 +103,7 @@ public class ProfileActivationContext { if ( explicitlyInactive == null ) { - explicitlyInactive = new ArrayList(); + explicitlyInactive = new ArrayList(); } explicitlyInactive.add( profileId ); @@ -119,11 +119,11 @@ public class ProfileActivationContext 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 @@ public class ProfileActivationContext { 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; }