aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject svn commit: r1796107 - /aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java
Date Wed, 24 May 2017 21:43:45 GMT
Author: csierra
Date: Wed May 24 21:43:45 2017
New Revision: 1796107

URL: http://svn.apache.org/viewvc?rev=1796107&view=rev
Log:
Source formatting

Modified:
    aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java

Modified: aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java?rev=1796107&r1=1796106&r2=1796107&view=diff
==============================================================================
--- aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java
(original)
+++ aries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/DSLTest.java
Wed May 24 21:43:45 2017
@@ -31,7 +31,6 @@ import org.osgi.service.cm.Configuration
 import org.osgi.service.cm.ManagedServiceFactory;
 
 import java.io.IOException;
-import java.util.Arrays;
 import java.util.Dictionary;
 import java.util.HashMap;
 import java.util.Hashtable;
@@ -112,6 +111,7 @@ public class DSLTest {
         {
             assertEquals(25, atomicInteger.get());
         }
+
     }
 
     @Test
@@ -449,9 +449,7 @@ public class DSLTest {
             program = services(filter).then(program);
         }
 
-        OSGiResult<?> result = program.run(bundleContext);
-
-        try {
+        try (OSGiResult<?> result = program.run(bundleContext)) {
             assertFalse(closed.get());
             assertFalse(executed.get());
 
@@ -492,8 +490,6 @@ public class DSLTest {
             serviceRegistrationTwo.unregister();
             serviceRegistrationThree.unregister();
         }
-        finally {
-            result.close();
         }
 
     }



Mime
View raw message