This is an automated email from the ASF dual-hosted git repository. amichai pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf-dosgi.git
commit 6818159ff1002cd9a6d5a3b1b0420f277cac53c8 Author: Amichai Rothman <amic...@apache.org> AuthorDate: Tue May 28 21:10:09 2019 +0300 Simplify array initialization --- .../httpservice/SecurityDelegatingHttpContextTest.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/common/src/test/java/org/apache/cxf/dosgi/common/httpservice/SecurityDelegatingHttpContextTest.java b/common/src/test/java/org/apache/cxf/dosgi/common/httpservice/SecurityDelegatingHttpContextTest.java index 8b36548..84a3545 100644 --- a/common/src/test/java/org/apache/cxf/dosgi/common/httpservice/SecurityDelegatingHttpContextTest.java +++ b/common/src/test/java/org/apache/cxf/dosgi/common/httpservice/SecurityDelegatingHttpContextTest.java @@ -68,7 +68,7 @@ public class SecurityDelegatingHttpContextTest extends TestCase { public void testFilterRequired() throws Exception { // Mock up the service references - ServiceReference[] serviceReferences = new ServiceReference[] {}; + ServiceReference[] serviceReferences = {}; // Mock up the bundle context BundleContext bundleContext = EasyMock.createNiceMock(BundleContext.class); @@ -100,9 +100,7 @@ public class SecurityDelegatingHttpContextTest extends TestCase { // Mock up the service references ServiceReference filterReference = EasyMock.createNiceMock(ServiceReference.class); EasyMock.replay(filterReference); - ServiceReference[] serviceReferences = new ServiceReference[] { - filterReference - }; + ServiceReference[] serviceReferences = {filterReference}; // Mock up the bundle context BundleContext bundleContext = EasyMock.createNiceMock(BundleContext.class); @@ -136,9 +134,7 @@ public class SecurityDelegatingHttpContextTest extends TestCase { // Mock up the service references ServiceReference filterReference = EasyMock.createNiceMock(ServiceReference.class); EasyMock.replay(filterReference); - ServiceReference[] serviceReferences = new ServiceReference[] { - filterReference, filterReference - }; + ServiceReference[] serviceReferences = {filterReference, filterReference}; // Mock up the bundle context BundleContext bundleContext = EasyMock.createNiceMock(BundleContext.class); @@ -173,9 +169,7 @@ public class SecurityDelegatingHttpContextTest extends TestCase { // Mock up the service references ServiceReference filterReference = EasyMock.createNiceMock(ServiceReference.class); EasyMock.replay(filterReference); - ServiceReference[] serviceReferences = new ServiceReference[] { - filterReference - }; + ServiceReference[] serviceReferences = {filterReference}; // Mock up the bundle context BundleContext bundleContext = EasyMock.createNiceMock(BundleContext.class);