commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1493362 - /commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java
Date Sat, 15 Jun 2013 14:13:29 GMT
Author: britter
Date: Sat Jun 15 14:13:29 2013
New Revision: 1493362

URL: http://svn.apache.org/r1493362
Log:
No need to create an anonymous subclass here

Modified:
    commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java

Modified: commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java?rev=1493362&r1=1493361&r2=1493362&view=diff
==============================================================================
--- commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java
(original)
+++ commons/proper/chain/trunk/base/src/test/java/org/apache/commons/chain2/impl/CatalogBaseTestCase.java
Sat Jun 15 14:13:29 2013
@@ -151,11 +151,8 @@ public class CatalogBaseTestCase {
     public void testInstantiationWithMapOfCommands() {
         @SuppressWarnings("serial")
         Map<String, Command<String, Object, Context<String, Object>>>
-            commands = new ConcurrentHashMap<String, Command<String, Object, Context<String,
Object>>>() {
-            {
-                put("AddingCommand", new AddingCommand("", null));
-            }
-        };
+            commands = new ConcurrentHashMap<String, Command<String, Object, Context<String,
Object>>>();
+        commands.put("AddingCommand", new AddingCommand("", null));
 
         CatalogBase<String, Object, Context<String, Object>>
             catalog = new CatalogBase<String, Object, Context<String, Object>>(commands);



Mime
View raw message