maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
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 GMT
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<String> explicitlyActive;
 
-    List explicitlyInactive;
+    private List<String> explicitlyInactive;
 
-    private List activeByDefault;
+    private List<String> activeByDefault;
 
     public ProfileActivationContext( Properties executionProperties, boolean isCustomActivatorFailureSuppressed
)
     {
@@ -59,32 +59,32 @@
         isCustomActivatorFailureSuppressed = suppressed;
     }
 
-    public List getExplicitlyActiveProfileIds()
+    public List<String> getExplicitlyActiveProfileIds()
     {
         if ( explicitlyActive == null )
         {
-            return Collections.EMPTY_LIST;
+            return Collections.emptyList();
         }
 
         return explicitlyActive;
     }
 
-    public void setExplicitlyActiveProfileIds( List active )
+    public void setExplicitlyActiveProfileIds( List<String> active )
     {
         explicitlyActive = active;
     }
 
-    public List getExplicitlyInactiveProfileIds()
+    public List<String> getExplicitlyInactiveProfileIds()
     {
         if ( explicitlyInactive == null )
         {
-            return Collections.EMPTY_LIST;
+            return Collections.emptyList();
         }
 
         return explicitlyInactive;
     }
 
-    public void setExplicitlyInactiveProfileIds( List inactive )
+    public void setExplicitlyInactiveProfileIds( List<String> inactive )
     {
         explicitlyInactive = inactive;
     }
@@ -93,7 +93,7 @@
     {
         if ( explicitlyActive == null )
         {
-            explicitlyActive = new ArrayList();
+            explicitlyActive = new ArrayList<String>();
         }
 
         explicitlyActive.add( profileId );
@@ -103,7 +103,7 @@
     {
         if ( explicitlyInactive == null )
         {
-            explicitlyInactive = new ArrayList();
+            explicitlyInactive = new ArrayList<String>();
         }
 
         explicitlyInactive.add( profileId );
@@ -119,11 +119,11 @@
         return ( explicitlyInactive != null ) && explicitlyInactive.contains( profileId
);
     }
 
-    public List getActiveByDefaultProfileIds()
+    public List<String> 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<String>();
         }
 
         activeByDefault.add( profileId );
     }
 
-    public void setActiveByDefaultProfileIds( List activeByDefault )
+    public void setActiveByDefaultProfileIds( List<String> activeByDefault )
     {
         this.activeByDefault = activeByDefault;
     }



Mime
View raw message