maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r751046 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
Date Fri, 06 Mar 2009 19:30:22 GMT
Author: bentmann
Date: Fri Mar  6 19:30:22 2009
New Revision: 751046

URL: http://svn.apache.org/viewvc?rev=751046&view=rev
Log:
o Fixed NPE due to uninitialized field

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java?rev=751046&r1=751045&r2=751046&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
Fri Mar  6 19:30:22 2009
@@ -157,8 +157,6 @@
     
     private Map pluginDefinitionsByPrefix = new HashMap();
     
-    private Context containerContext;
-    
     public DefaultPluginManager()
     {
         pluginDescriptorBuilder = new PluginDescriptorBuilder();
@@ -1988,7 +1986,9 @@
 
         try
         {
-            List componentSetDescriptors = RealmScanningUtils.scanForComponentSetDescriptors(
artifact, discoverer, containerContext, "Plugin: " + plugin.getKey() );
+            List componentSetDescriptors =
+                RealmScanningUtils.scanForComponentSetDescriptors( artifact, discoverer,
container.getContext(),
+                                                                   "Plugin: " + plugin.getKey()
);
 
             if ( !componentSetDescriptors.isEmpty() )
             {
@@ -2002,12 +2002,6 @@
 
         return null;
     }
-
-    public void contextualize( Context context )
-        throws ContextException
-    {
-        containerContext = context;
-    }
     
     // Plugin Mapping Manager
     



Mime
View raw message