hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahue...@apache.org
Subject svn commit: r498814 - in /hivemind/hivemind2/trunk: examples/src/java/org/apache/examples/panorama/startup/impl/ examples/src/test/org/apache/examples/panorama/startup/impl/ framework/src/java/org/apache/hivemind/util/ framework/src/test/org/apache/hiv...
Date Mon, 22 Jan 2007 21:23:33 GMT
Author: ahuegen
Date: Mon Jan 22 13:23:32 2007
New Revision: 498814

URL: http://svn.apache.org/viewvc?view=rev&rev=498814
Log:
Removed unused imports and other warnings.

Modified:
    hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java
    hivemind/hivemind2/trunk/examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java
    hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/ConstructorUtils.java
    hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/PropertyAdaptor.java
    hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/UniqueHashMap.java
    hivemind/hivemind2/trunk/framework/src/test/org/apache/hivemind/servlet/TestAutoloadingHiveMindFilter.java
    hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/JMXConnectorServerFactory.java
    hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/MBeanRegistryImpl.java
    hivemind/hivemind2/trunk/library/src/test/org/apache/hivemind/lib/impl/TestMethodInterceptorFactory.java
    hivemind/hivemind2/trunk/xml/src/java/org/apache/hivemind/service/impl/BuilderFactoryLogic.java
    hivemind/hivemind2/trunk/xml/src/test/hivemind/test/config/TestConversion.java
    hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestConfigurationTranslator.java
    hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestInstanceTranslator.java
    hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/TestBuilderFactory.java
    hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java
    hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestContains.java
    hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestSubModule.java

Modified: hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java
(original)
+++ hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java
Mon Jan 22 13:23:32 2007
@@ -32,9 +32,9 @@
 
     public void execute() throws Exception
     {
-        Method m = _targetClass.getMethod(_methodName, null);
+        Method m = _targetClass.getMethod(_methodName, (Class []) null);
 
-        m.invoke(null, null);
+        m.invoke(null, (Object []) null);
     }
 
     /**

Modified: hivemind/hivemind2/trunk/examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java
(original)
+++ hivemind/hivemind2/trunk/examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java
Mon Jan 22 13:23:32 2007
@@ -19,12 +19,9 @@
 import java.util.Collections;
 import java.util.List;
 import java.util.Locale;
-import java.util.Properties;
 
 import org.apache.commons.logging.Log;
 import org.apache.examples.panorama.startup.Executable;
-import org.apache.examples.panorama.startup.impl.Task;
-import org.apache.examples.panorama.startup.impl.TaskExecutor;
 import org.apache.hivemind.ApplicationRuntimeException;
 import org.apache.hivemind.ErrorLog;
 import org.apache.hivemind.Messages;

Modified: hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/ConstructorUtils.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/ConstructorUtils.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/ConstructorUtils.java
(original)
+++ hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/ConstructorUtils.java
Mon Jan 22 13:23:32 2007
@@ -156,7 +156,7 @@
     
         Constructor[] constructors = clazz.getDeclaredConstructors();
     
-        outer: for (int i = 0; i < constructors.length; i++)
+        for (int i = 0; i < constructors.length; i++)
         {
             if (!Modifier.isPublic(constructors[i].getModifiers()))
                 continue;

Modified: hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/PropertyAdaptor.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/PropertyAdaptor.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/PropertyAdaptor.java
(original)
+++ hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/PropertyAdaptor.java
Mon Jan 22 13:23:32 2007
@@ -189,7 +189,7 @@
 
         try
         {
-            return _readMethod.invoke(target, null);
+            return _readMethod.invoke(target, (Object []) null);
 
         }
         catch (Exception ex)

Modified: hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/UniqueHashMap.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/UniqueHashMap.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/UniqueHashMap.java
(original)
+++ hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/util/UniqueHashMap.java
Mon Jan 22 13:23:32 2007
@@ -12,6 +12,8 @@
 public class UniqueHashMap extends HashMap
 {
 
+    private static final long serialVersionUID = -3961343404455706964L;
+
     public Object put(Object key, Object value)
     {
         if (containsKey(key)) {

Modified: hivemind/hivemind2/trunk/framework/src/test/org/apache/hivemind/servlet/TestAutoloadingHiveMindFilter.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/test/org/apache/hivemind/servlet/TestAutoloadingHiveMindFilter.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/test/org/apache/hivemind/servlet/TestAutoloadingHiveMindFilter.java
(original)
+++ hivemind/hivemind2/trunk/framework/src/test/org/apache/hivemind/servlet/TestAutoloadingHiveMindFilter.java
Mon Jan 22 13:23:32 2007
@@ -15,7 +15,6 @@
 package org.apache.hivemind.servlet;
 
 import java.io.IOException;
-import java.net.URL;
 
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;

Modified: hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/JMXConnectorServerFactory.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/JMXConnectorServerFactory.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/JMXConnectorServerFactory.java
(original)
+++ hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/JMXConnectorServerFactory.java
Mon Jan 22 13:23:32 2007
@@ -44,7 +44,7 @@
             ServiceImplementationFactoryParameters factoryParameters)
     {
         // Read the parameters of the factory call
-        List parameterList = (List) factoryParameters.getParameters();
+        List parameterList = (List) factoryParameters.getParametersContainer();
         JMXConnectorServerParameter parameter = (JMXConnectorServerParameter) parameterList.get(0);
 
         Map env = new HashMap();

Modified: hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/MBeanRegistryImpl.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/MBeanRegistryImpl.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/MBeanRegistryImpl.java
(original)
+++ hivemind/hivemind2/trunk/jmx/src/java/org/apache/hivemind/management/impl/MBeanRegistryImpl.java
Mon Jan 22 13:23:32 2007
@@ -224,8 +224,8 @@
             InvocationTargetException, NoSuchMethodException
     {
         Class serviceClass = mbean.getClass();
-        Method m = serviceClass.getMethod(methodName, null);
-        m.invoke(mbean, null);
+        Method m = serviceClass.getMethod(methodName, (Class []) null);
+        m.invoke(mbean, (Object []) null);
     }
 
     /**

Modified: hivemind/hivemind2/trunk/library/src/test/org/apache/hivemind/lib/impl/TestMethodInterceptorFactory.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/library/src/test/org/apache/hivemind/lib/impl/TestMethodInterceptorFactory.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/library/src/test/org/apache/hivemind/lib/impl/TestMethodInterceptorFactory.java
(original)
+++ hivemind/hivemind2/trunk/library/src/test/org/apache/hivemind/lib/impl/TestMethodInterceptorFactory.java
Mon Jan 22 13:23:32 2007
@@ -16,7 +16,6 @@
 
 import org.apache.hivemind.ApplicationRuntimeException;
 import org.apache.hivemind.Registry;
-import org.apache.hivemind.test.HiveMindTestCase;
 import org.apache.hivemind.xml.XmlTestCase;
 
 /**

Modified: hivemind/hivemind2/trunk/xml/src/java/org/apache/hivemind/service/impl/BuilderFactoryLogic.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/java/org/apache/hivemind/service/impl/BuilderFactoryLogic.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/java/org/apache/hivemind/service/impl/BuilderFactoryLogic.java
(original)
+++ hivemind/hivemind2/trunk/xml/src/java/org/apache/hivemind/service/impl/BuilderFactoryLogic.java
Mon Jan 22 13:23:32 2007
@@ -271,9 +271,9 @@
 
         try
         {
-            Method m = serviceClass.getMethod(methodName, null);
+            Method m = serviceClass.getMethod(methodName, (Class []) null);
 
-            m.invoke(service, null);
+            m.invoke(service, (Object []) null);
         }
         catch (NoSuchMethodException ex)
         {

Modified: hivemind/hivemind2/trunk/xml/src/test/hivemind/test/config/TestConversion.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/hivemind/test/config/TestConversion.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/hivemind/test/config/TestConversion.java (original)
+++ hivemind/hivemind2/trunk/xml/src/test/hivemind/test/config/TestConversion.java Mon Jan
22 13:23:32 2007
@@ -14,8 +14,6 @@
 
 package hivemind.test.config;
 
-import hivemind.test.FrameworkTestCase;
-
 import java.util.List;
 
 import org.apache.hivemind.Registry;

Modified: hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestConfigurationTranslator.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestConfigurationTranslator.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestConfigurationTranslator.java
(original)
+++ hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestConfigurationTranslator.java
Mon Jan 22 13:23:32 2007
@@ -14,7 +14,6 @@
 
 package hivemind.test.rules;
 
-import hivemind.test.FrameworkTestCase;
 import hivemind.test.config.impl.Datum;
 
 import java.util.List;

Modified: hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestInstanceTranslator.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestInstanceTranslator.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestInstanceTranslator.java
(original)
+++ hivemind/hivemind2/trunk/xml/src/test/hivemind/test/rules/TestInstanceTranslator.java
Mon Jan 22 13:23:32 2007
@@ -14,8 +14,6 @@
 
 package hivemind.test.rules;
 
-import hivemind.test.FrameworkTestCase;
-
 import java.util.List;
 
 import org.apache.hivemind.ApplicationRuntimeException;

Modified: hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/TestBuilderFactory.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/TestBuilderFactory.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/TestBuilderFactory.java
(original)
+++ hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/TestBuilderFactory.java
Mon Jan 22 13:23:32 2007
@@ -474,12 +474,6 @@
         verifyControls();
     }
 
-    private void trainIsDebugEnabled(Log log)
-    {
-        log.isDebugEnabled();
-        setReturnValue(log, false);
-    }
-
     private void trainGetService(Module module, Class serviceInterface, Object service)
     {
         module.getService(serviceInterface);

Modified: hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java
(original)
+++ hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java
Mon Jan 22 13:23:32 2007
@@ -23,7 +23,6 @@
 import org.apache.hivemind.internal.Module;
 import org.apache.hivemind.test.AggregateArgumentsMatcher;
 import org.apache.hivemind.test.ArgumentMatcher;
-import org.apache.hivemind.test.HiveMindTestCase;
 import org.apache.hivemind.test.TypeMatcher;
 import org.apache.hivemind.xml.XmlTestCase;
 import org.easymock.MockControl;

Modified: hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestContains.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestContains.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestContains.java (original)
+++ hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestContains.java Mon Jan
22 13:23:32 2007
@@ -14,7 +14,6 @@
 
 package org.apache.hivemind.xml;
 
-import hivemind.test.FrameworkTestCase;
 import hivemind.test.IMultipleService;
 import hivemind.test.IUniqueService;
 

Modified: hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestSubModule.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestSubModule.java?view=diff&rev=498814&r1=498813&r2=498814
==============================================================================
--- hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestSubModule.java (original)
+++ hivemind/hivemind2/trunk/xml/src/test/org/apache/hivemind/xml/TestSubModule.java Mon Jan
22 13:23:32 2007
@@ -14,7 +14,6 @@
 
 package org.apache.hivemind.xml;
 
-import hivemind.test.FrameworkTestCase;
 import hivemind.test.services.SimpleService;
 
 import org.apache.hivemind.Registry;



Mime
View raw message