cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [12/14] cxf git commit: Removing unnecessary type information
Date Fri, 10 Feb 2017 15:42:00 GMT
http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/SampleOAuthDataProvider.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/SampleOAuthDataProvider.java b/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/SampleOAuthDataProvider.java
index c8ed5d6..20a1797 100644
--- a/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/SampleOAuthDataProvider.java
+++ b/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/controllers/SampleOAuthDataProvider.java
@@ -38,7 +38,7 @@ public class SampleOAuthDataProvider extends MemoryOAuthDataProvider
     }
 
     public Set<Client> listRegisteredClients() {
-        Set<Client> apps = new HashSet<Client>();
+        Set<Client> apps = new HashSet<>();
         Set<String> appList = userRegisteredClients.keySet();
         if (appList != null) {
             for (String s : appList) {
@@ -49,7 +49,7 @@ public class SampleOAuthDataProvider extends MemoryOAuthDataProvider
     }
 
     public Set<Client> listAuthorizedClients() {
-        Set<Client> apps = new HashSet<Client>();
+        Set<Client> apps = new HashSet<>();
         Set<String> appList = userAuthorizedClients.keySet();
         if (appList != null) {
             for (String s : appList) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/spring/SpringOAuthAuthenticationFilter.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/spring/SpringOAuthAuthenticationFilter.java b/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/spring/SpringOAuthAuthenticationFilter.java
index 09d3a5e..1c134bd 100644
--- a/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/spring/SpringOAuthAuthenticationFilter.java
+++ b/distribution/src/main/release/samples/oauth/server/src/main/java/demo/oauth/server/spring/SpringOAuthAuthenticationFilter.java
@@ -49,7 +49,7 @@ public class SpringOAuthAuthenticationFilter implements Filter {
         HttpServletResponse resp = (HttpServletResponse)response;
 
         List<String> authorities = (List<String>)request.getAttribute(OAUTH_AUTHORITIES);
-        List<GrantedAuthority> grantedAuthorities = new ArrayList<GrantedAuthority>();
+        List<GrantedAuthority> grantedAuthorities = new ArrayList<>();
 
         if (authorities != null) {
             for (String authority : authorities) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/throttling/src/main/java/demo/throttling/client/Client.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/throttling/src/main/java/demo/throttling/client/Client.java b/distribution/src/main/release/samples/throttling/src/main/java/demo/throttling/client/Client.java
index 925740e..57cf5fb 100644
--- a/distribution/src/main/release/samples/throttling/src/main/java/demo/throttling/client/Client.java
+++ b/distribution/src/main/release/samples/throttling/src/main/java/demo/throttling/client/Client.java
@@ -119,7 +119,7 @@ public final class Client implements Runnable {
         b.setExtension(registry, MetricRegistry.class);        
 
         SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
-        List<Client> c = new ArrayList<Client>();
+        List<Client> c = new ArrayList<>();
         Client client;
         client = new Client("Tom", ss);
         new Thread(client).start();

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/ApplicationSingleton.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/ApplicationSingleton.java b/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/ApplicationSingleton.java
index 2e0fb05..708f1a0 100644
--- a/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/ApplicationSingleton.java
+++ b/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/ApplicationSingleton.java
@@ -27,7 +27,7 @@ import demo.wseventing.eventapi.CatastrophicEventSinkImpl;
 public final class ApplicationSingleton {
 
     private static ApplicationSingleton instance;
-    private List<CatastrophicEventSinkImpl> eventSinks = new ArrayList<CatastrophicEventSinkImpl>();
+    private List<CatastrophicEventSinkImpl> eventSinks = new ArrayList<>();
 
     private ApplicationSingleton() {
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java b/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java
index 58038c2..ce82846 100644
--- a/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java
+++ b/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java
@@ -31,7 +31,7 @@ public class CatastrophicEventSinkImpl implements CatastrophicEventSink {
 
     private Server server;
 
-    private List<Object> receivedEvents = new ArrayList<Object>();
+    private List<Object> receivedEvents = new ArrayList<>();
 
     public CatastrophicEventSinkImpl(String url) {
         JaxWsServerFactoryBean bean = new JaxWsServerFactoryBean();

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java b/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
index 3fdce4a..f2e91c0 100644
--- a/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
+++ b/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
@@ -50,7 +50,7 @@ public class CustomerServiceImpl implements CustomerService {
                                               noSuchCustomer);
         }
 
-        List<Customer> customers = new ArrayList<Customer>();
+        List<Customer> customers = new ArrayList<>();
         for (int c = 0; c < 2; c++) {
             Customer cust = new Customer();
             cust.setName(name);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/core/classloader/PlugInClassLoader.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/core/classloader/PlugInClassLoader.java b/integration/jca/src/main/java/org/apache/cxf/jca/core/classloader/PlugInClassLoader.java
index 29d4da0..18facd5 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/core/classloader/PlugInClassLoader.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/core/classloader/PlugInClassLoader.java
@@ -100,7 +100,7 @@ public class PlugInClassLoader extends SecureClassLoader {
     }
 
     private String[] loadUrls(ClassLoader parent) throws IOException {
-        List<String> urlList = new ArrayList<String>();
+        List<String> urlList = new ArrayList<>();
 
         Properties props = getProperties(parent, JARS_PROPS_FILE);
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/core/resourceadapter/AbstractManagedConnectionImpl.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/core/resourceadapter/AbstractManagedConnectionImpl.java b/integration/jca/src/main/java/org/apache/cxf/jca/core/resourceadapter/AbstractManagedConnectionImpl.java
index ac662da..848ffbc 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/core/resourceadapter/AbstractManagedConnectionImpl.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/core/resourceadapter/AbstractManagedConnectionImpl.java
@@ -40,7 +40,7 @@ public abstract class AbstractManagedConnectionImpl implements ManagedConnection
     protected ConnectionRequestInfo crinfo;
     protected Subject subject;
     protected Set<ConnectionEventListener> connectionEventListeners = 
-        new HashSet<ConnectionEventListener>();
+        new HashSet<>();
     private final AbstractManagedConnectionFactoryImpl managedConnectionFactory;
 
     public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, 
@@ -88,7 +88,7 @@ public abstract class AbstractManagedConnectionImpl implements ManagedConnection
     // beging chucked from the pool
     public void destroy() throws ResourceException {
         LOG.log(Level.FINE, "DESTROY_CALLED", new Object[] {this});
-        connectionEventListeners = new HashSet<ConnectionEventListener>();
+        connectionEventListeners = new HashSet<>();
         
         LoggerHelper.deleteLoggingOnWriter();
         if (printWriter != null) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/cxf/JCABusFactory.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/JCABusFactory.java b/integration/jca/src/main/java/org/apache/cxf/jca/cxf/JCABusFactory.java
index 1d15472..9779acc 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/JCABusFactory.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/cxf/JCABusFactory.java
@@ -53,7 +53,7 @@ public class JCABusFactory {
     private static final ResourceBundle BUNDLE = BundleUtils.getBundle(JCABusFactory.class);
     
     private Bus bus;
-    private List<Server> servantsCache = new ArrayList<Server>();
+    private List<Server> servantsCache = new ArrayList<>();
     private ClassLoader appserverClassLoader;
     private ManagedConnectionFactoryImpl mcf;
     private Object raBootstrapContext;

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/cxf/ResourceAdapterImpl.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/ResourceAdapterImpl.java b/integration/jca/src/main/java/org/apache/cxf/jca/cxf/ResourceAdapterImpl.java
index 4445627..32ba1ec 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/ResourceAdapterImpl.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/cxf/ResourceAdapterImpl.java
@@ -49,7 +49,7 @@ public class ResourceAdapterImpl extends ResourceBean implements ResourceAdapter
     private static final long serialVersionUID = 5318740621610762307L;
     private static final Logger LOG = LogUtils.getL7dLogger(ResourceAdapterImpl.class);
     private BootstrapContext ctx;
-    private Set<Bus> busCache = new HashSet<Bus>();
+    private Set<Bus> busCache = new HashSet<>();
     private Map<String, InboundEndpoint> endpoints = new ConcurrentHashMap<String, InboundEndpoint>();
     
     public ResourceAdapterImpl() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/outbound/ManagedConnectionImpl.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/outbound/ManagedConnectionImpl.java b/integration/jca/src/main/java/org/apache/cxf/jca/outbound/ManagedConnectionImpl.java
index 7355d0b..c516728 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/outbound/ManagedConnectionImpl.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/outbound/ManagedConnectionImpl.java
@@ -66,7 +66,7 @@ public class ManagedConnectionImpl implements ManagedConnection {
     private static final Logger LOG = LogUtils.getL7dLogger(ManagedConnectionImpl.class);
     
     private Set<ConnectionEventListener> listeners = 
-        Collections.synchronizedSet(new HashSet<ConnectionEventListener>());
+        Collections.synchronizedSet(new HashSet<>());
     
     private Map<Object, Subject> handles = 
         Collections.synchronizedMap(new HashMap<Object, Subject>());

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java b/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java
index 4a653ed..71fb54e 100644
--- a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java
+++ b/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java
@@ -111,7 +111,7 @@ public class EJBEndpoint {
         engine.setThreadPool(new WorkManagerThreadPool(getWorkManager()));
         engine.setPort(port);
         
-        List<JettyHTTPServerEngine> engineList = new ArrayList<JettyHTTPServerEngine>();
+        List<JettyHTTPServerEngine> engineList = new ArrayList<>();
         engineList.add(engine);
         engineFactory.setEnginesList(engineList);
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ManagedConnectionFactoryImplTest.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ManagedConnectionFactoryImplTest.java b/integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ManagedConnectionFactoryImplTest.java
index ed5da69..b6f92fe 100644
--- a/integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ManagedConnectionFactoryImplTest.java
+++ b/integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ManagedConnectionFactoryImplTest.java
@@ -49,7 +49,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
     @Test
     public void testMatchConnectionSameConnectioRequestInfoNotBound() throws Exception {
         Subject subject = null;
-        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<AbstractManagedConnectionImpl>();
+        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<>();
         ConnectionRequestInfo cri = new DummyConnectionRequestInfo();
         DummyManagedConnectionImpl con1 = new DummyManagedConnectionImpl(mcf, cri, subject);
         connectionSet.add(con1);
@@ -61,7 +61,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
     @Test
     public void testMatchConnectionSameConnectioRequestInfoBound() throws Exception {
         Subject subject = null;
-        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<AbstractManagedConnectionImpl>();
+        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<>();
         ConnectionRequestInfo cri = new DummyConnectionRequestInfo();
         DummyManagedConnectionImpl con1 = new DummyManagedConnectionImpl(mcf, cri, subject);
         con1.setBound(true);
@@ -79,7 +79,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
         Subject subject = null;
         assertTrue("request info object are differnt", cri1 != cri2);
 
-        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<AbstractManagedConnectionImpl>();
+        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<>();
         DummyManagedConnectionImpl con1 = new DummyManagedConnectionImpl(mcf, cri1, subject);
         connectionSet.add(con1);
 
@@ -96,7 +96,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
 
         assertTrue("request info object are differnt", cri1 != cri2);
 
-        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<AbstractManagedConnectionImpl>();
+        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<>();
         DummyManagedConnectionImpl con1 = new DummyManagedConnectionImpl(mcf, cri1, subject);
         con1.setBound(true);
         connectionSet.add(con1);
@@ -108,7 +108,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
     @Test
     public void testMatchConnectionInvalidatedWithSameConnectioRequestInfo() throws Exception {
         Subject subject = null;
-        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<AbstractManagedConnectionImpl>();
+        Set<AbstractManagedConnectionImpl> connectionSet = new HashSet<>();
         ConnectionRequestInfo cri = new DummyConnectionRequestInfo();
 
         DummyManagedConnectionImpl con1 = new DummyManagedConnectionImpl(mcf, cri, subject);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ManagedConnectionFactoryImplTest.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ManagedConnectionFactoryImplTest.java b/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ManagedConnectionFactoryImplTest.java
index 55c4ae8..6a7c681 100644
--- a/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ManagedConnectionFactoryImplTest.java
+++ b/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ManagedConnectionFactoryImplTest.java
@@ -152,7 +152,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
         mci = new ManagedConnectionFactoryImplTester();
         Object unboundMC = mci.createManagedConnection(null, null);
         assertNotNull("MC must not be null.", unboundMC);
-        Set<Object> mcSet = new HashSet<Object>();
+        Set<Object> mcSet = new HashSet<>();
         mcSet.add(unboundMC);
         assertSame("Must be same managed connection instance.",
                    mci.matchManagedConnections(mcSet, null, cri), unboundMC);
@@ -186,7 +186,7 @@ public class ManagedConnectionFactoryImplTest extends Assert {
         */
 //        EasyMock.verify(factory);
         
-        Set<ManagedConnection> mcSet = new HashSet<ManagedConnection>();
+        Set<ManagedConnection> mcSet = new HashSet<>();
         mcSet.add(mc1);
         //mcSet.add(mc2);
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ResourceAdapterImplTest.java
----------------------------------------------------------------------
diff --git a/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ResourceAdapterImplTest.java b/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ResourceAdapterImplTest.java
index ca9b11f..f4a03c0 100644
--- a/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ResourceAdapterImplTest.java
+++ b/integration/jca/src/test/java/org/apache/cxf/jca/cxf/ResourceAdapterImplTest.java
@@ -135,7 +135,7 @@ public class ResourceAdapterImplTest extends Assert {
     @Test
     public void testStopWithEmptyBusCache() throws Exception {
         ResourceAdapterImpl rai = new ResourceAdapterImpl();
-        rai.setBusCache(new HashSet<Bus>());
+        rai.setBusCache(new HashSet<>());
         try {
             assertNotNull("bus cache is not null", rai.getBusCache());
             assertTrue("bus cache is empty", rai.getBusCache().isEmpty());
@@ -148,7 +148,7 @@ public class ResourceAdapterImplTest extends Assert {
     @Test
     public void testStopWithNonEmptyBusCache() throws Exception {
         ResourceAdapterImpl rai = new ResourceAdapterImpl();
-        rai.setBusCache(new HashSet<Bus>());
+        rai.setBusCache(new HashSet<>());
         Bus bus = EasyMock.createMock(Bus.class);
         bus.shutdown(true);
         EasyMock.expectLastCall();

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/integration/tracing/tracing-brave/src/test/java/org/apache/cxf/tracing/brave/BraveTraceTest.java
----------------------------------------------------------------------
diff --git a/integration/tracing/tracing-brave/src/test/java/org/apache/cxf/tracing/brave/BraveTraceTest.java b/integration/tracing/tracing-brave/src/test/java/org/apache/cxf/tracing/brave/BraveTraceTest.java
index bc6b27b..7a70a18 100644
--- a/integration/tracing/tracing-brave/src/test/java/org/apache/cxf/tracing/brave/BraveTraceTest.java
+++ b/integration/tracing/tracing-brave/src/test/java/org/apache/cxf/tracing/brave/BraveTraceTest.java
@@ -94,7 +94,7 @@ public class BraveTraceTest {
     }
     
     static final class Localreporter implements Reporter<Span> {
-        List<Span> spans = new ArrayList<Span>();
+        List<Span> spans = new ArrayList<>();
 
         @Override
         public void report(Span span) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/archetypes/cxf-jaxrs-service/src/main/resources/archetype-resources/src/test/java/HelloWorldIT.java
----------------------------------------------------------------------
diff --git a/maven-plugins/archetypes/cxf-jaxrs-service/src/main/resources/archetype-resources/src/test/java/HelloWorldIT.java b/maven-plugins/archetypes/cxf-jaxrs-service/src/main/resources/archetype-resources/src/test/java/HelloWorldIT.java
index 0bd8d0e..0404af3 100644
--- a/maven-plugins/archetypes/cxf-jaxrs-service/src/main/resources/archetype-resources/src/test/java/HelloWorldIT.java
+++ b/maven-plugins/archetypes/cxf-jaxrs-service/src/main/resources/archetype-resources/src/test/java/HelloWorldIT.java
@@ -34,7 +34,7 @@ public class HelloWorldIT {
 
     @Test
     public void testJsonRoundtrip() throws Exception {
-        List<Object> providers = new ArrayList<Object>();
+        List<Object> providers = new ArrayList<>();
         providers.add(new org.codehaus.jackson.jaxrs.JacksonJsonProvider());
         JsonBean inputBean = new JsonBean();
         inputBean.setVal1("Maple");

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
index fe589da..51269ed 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
@@ -830,7 +830,7 @@ public abstract class AbstractCodegenMoho extends AbstractMojo {
     }
 
     private Artifact resolveDependentWsdl(Artifact artifact) {
-        Collection<String> scopes = new ArrayList<String>();
+        Collection<String> scopes = new ArrayList<>();
         scopes.add(Artifact.SCOPE_RUNTIME);
         Set<Artifact> artifactSet = null;
         try {
@@ -843,7 +843,7 @@ public abstract class AbstractCodegenMoho extends AbstractMojo {
 
     private Artifact resolveAttachedWsdl(Artifact artifact) {
         List<MavenProject> rProjects = mavenSession.getProjects();
-        List<Artifact> artifactList = new ArrayList<Artifact>();
+        List<Artifact> artifactList = new ArrayList<>();
         for (MavenProject rProject : rProjects) {
             List<Artifact> list = CastUtils.cast(rProject.getAttachedArtifacts());
             if (list != null) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
index a8a3fae..8b24b43 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
@@ -61,7 +61,7 @@ public class ClassLoaderSwitcher {
     public Set<URI> switchClassLoader(MavenProject project,
                                          boolean useCompileClasspath,
                                          File classesDir) {
-        List<URL> urlList = new ArrayList<URL>();
+        List<URL> urlList = new ArrayList<>();
         StringBuilder buf = new StringBuilder();
         Set<URI> ret = new LinkedHashSet<URI>();
         

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlUtilities.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlUtilities.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlUtilities.java
index ea91bb9..c49aebf 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlUtilities.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlUtilities.java
@@ -69,7 +69,7 @@ public final class WsdlUtilities {
     public static List<File> getWsdlFiles(File dir, String includes[], String excludes[])
         throws MojoExecutionException {
 
-        List<String> exList = new ArrayList<String>();
+        List<String> exList = new ArrayList<>();
         if (excludes != null) {
             exList.addAll(Arrays.asList(excludes));
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/Option.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/Option.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/Option.java
index 0e7a78a..a99abdc 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/Option.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/Option.java
@@ -42,19 +42,19 @@ public class Option {
     /**
      * 
      */
-    protected List<String> packagenames = new ArrayList<String>();
+    protected List<String> packagenames = new ArrayList<>();
 
     /**
      * Extra arguments to pass to the command-line code generator. For compatibility as well as to
      * specify any extra flags not addressed by other parameters
      */
-    protected List<String> extraargs = new ArrayList<String>();
+    protected List<String> extraargs = new ArrayList<>();
 
     /**
      * Extra arguments to pass to the XJC compiler command-line code generator.
      * For compatibility as well as to specify any extra flags not addressed by other parameters
      */
-    protected List<String> xjcargs = new ArrayList<String>();
+    protected List<String> xjcargs = new ArrayList<>();
     
     protected String[] asyncMethods;
     protected String[] bareMethods;
@@ -70,7 +70,7 @@ public class Option {
      * Also, optionally specifies the Java package name used by types described in the excluded 
      * namespace(s) using schema-namespace[=java-packagename]
      */
-    List<String> namespaceExcludes = new ArrayList<String>();
+    List<String> namespaceExcludes = new ArrayList<>();
 
     /**
      * Enables or disables the loading of the default excludes namespace mapping. Default is true.
@@ -99,7 +99,7 @@ public class Option {
     /**
      * Specifies JAXWS or JAXB binding files. Use spaces to separate multiple entries.
      */
-    Set<String> bindingFiles = new HashSet<String>();
+    Set<String> bindingFiles = new HashSet<>();
 
     /**
      * Specifies the value of the @WebServiceClient annotation's wsdlLocation property. 
@@ -162,7 +162,7 @@ public class Option {
     /**
      * The superinterfaces to use for generated SEIs
      */
-    List<String> seiSuper = new ArrayList<String>();
+    List<String> seiSuper = new ArrayList<>();
 
     /**
      * Uses @Generated annotation in all generated java classes if the flag is set to true.

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WSDL2JavaMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WSDL2JavaMojo.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WSDL2JavaMojo.java
index 22eea50..07d9935 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WSDL2JavaMojo.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WSDL2JavaMojo.java
@@ -166,7 +166,7 @@ public class WSDL2JavaMojo extends AbstractCodegenMoho {
         File outputDirFile = getGeneratedTestRoot() == null 
                              ? getGeneratedSourceRoot() : getGeneratedTestRoot();
 
-        List<GenericWsdlOption> newList = new ArrayList<GenericWsdlOption>();
+        List<GenericWsdlOption> newList = new ArrayList<>();
 
         for (GenericWsdlOption go : effectiveWsdlOptions) {
             WsdlOption o = (WsdlOption) go;
@@ -403,8 +403,8 @@ public class WSDL2JavaMojo extends AbstractCodegenMoho {
             }
             try {
                 ToolContext ctx = new ToolContext();
-                final List<File> files = new ArrayList<File>();                
-                final List<File> errorfiles = new ArrayList<File>();                
+                final List<File> files = new ArrayList<>();                
+                final List<File> errorfiles = new ArrayList<>();                
                 ctx.put(OutputStreamCreator.class, new OutputStreamCreator() {
                     public OutputStream createOutputStream(File file) throws IOException {
                         files.add(file);
@@ -462,7 +462,7 @@ public class WSDL2JavaMojo extends AbstractCodegenMoho {
      */
     protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
         throws MojoExecutionException {
-        List<GenericWsdlOption> effectiveWsdlOptions = new ArrayList<GenericWsdlOption>();
+        List<GenericWsdlOption> effectiveWsdlOptions = new ArrayList<>();
 
         if (wsdlOptions != null) {
             for (WsdlOption wo : wsdlOptions) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOption.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOption.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOption.java
index 2ed5794..8d74931 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOption.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOption.java
@@ -145,7 +145,7 @@ public class WsdlOption extends Option implements org.apache.cxf.maven_plugin.Ge
     }
 
     public List<String> generateCommandLine(File outputDirFile, URI basedir, URI wsdlURI, boolean debug) {
-        List<String> list = new ArrayList<String>();
+        List<String> list = new ArrayList<>();
         addList(list, "-p", true, getPackagenames());
         addList(list, "-nexclude", true, getNamespaceExcludes());
         addIfNotNull(list, outputDirFile, "-d");

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOptionLoader.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOptionLoader.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOptionLoader.java
index 9cee2ae..616617b 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOptionLoader.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/WsdlOptionLoader.java
@@ -43,7 +43,7 @@ public final class WsdlOptionLoader {
     
     public static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(MavenProject project, 
                                                                           File outputDir) {
-        List<GenericWsdlOption> options = new ArrayList<GenericWsdlOption>();
+        List<GenericWsdlOption> options = new ArrayList<>();
         Set<Artifact> dependencies = CastUtils.cast(project.getDependencyArtifacts());
         for (Artifact artifact : dependencies) {
             WsdlOption option = generateWsdlOptionFromArtifact(artifact, outputDir);
@@ -91,7 +91,7 @@ public final class WsdlOptionLoader {
 
         List<File> wsdlFiles = WsdlUtilities.getWsdlFiles(wsdlBasedir, includes, excludes);
         List<GenericWsdlOption> wsdlOptions 
-            = new ArrayList<GenericWsdlOption>();
+            = new ArrayList<>();
         for (File wsdl : wsdlFiles) {
             WsdlOption wsdlOption = generateWsdlOptionFromFile(wsdl, defaultOutputDir);
             if (wsdlOption != null) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WSDL2JavaScriptMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WSDL2JavaScriptMojo.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WSDL2JavaScriptMojo.java
index 4a53d6c..6ce9798 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WSDL2JavaScriptMojo.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WSDL2JavaScriptMojo.java
@@ -202,7 +202,7 @@ public class WSDL2JavaScriptMojo extends AbstractCodegenMoho {
     @Override
     protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
         throws MojoExecutionException {
-        List<GenericWsdlOption> effectiveWsdlOptions = new ArrayList<GenericWsdlOption>();
+        List<GenericWsdlOption> effectiveWsdlOptions = new ArrayList<>();
         List<GenericWsdlOption> temp;
         
         if (wsdlOptions != null) {
@@ -240,7 +240,7 @@ public class WSDL2JavaScriptMojo extends AbstractCodegenMoho {
         }
 
         List<File> wsdlFiles = WsdlUtilities.getWsdlFiles(wsdlBasedir, includes, excludes);
-        List<GenericWsdlOption> options = new ArrayList<GenericWsdlOption>();
+        List<GenericWsdlOption> options = new ArrayList<>();
         for (File wsdl : wsdlFiles) {
             WsdlOption wsdlOption = new WsdlOption();
             wsdlOption.setOutputDir(defaultOutputDir);
@@ -254,7 +254,7 @@ public class WSDL2JavaScriptMojo extends AbstractCodegenMoho {
                                                                           Option defaultOptions,
                                                                           File outputDir) {
         List<GenericWsdlOption> options 
-            = new ArrayList<GenericWsdlOption>();
+            = new ArrayList<>();
         Set<Artifact> dependencies = CastUtils.cast(project.getDependencyArtifacts());
         for (Artifact artifact : dependencies) {
             WsdlOption option = new WsdlOption();

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlOption.java
----------------------------------------------------------------------
diff --git a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlOption.java b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlOption.java
index 671106f..cd11f8c 100644
--- a/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlOption.java
+++ b/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlOption.java
@@ -76,7 +76,7 @@ public class WsdlOption extends Option implements org.apache.cxf.maven_plugin.Ge
     }
 
     public List<String> generateCommandLine(File outputDirFile, URI basedir, URI wsdlURI, boolean debug) {
-        List<String> options = new ArrayList<String>();
+        List<String> options = new ArrayList<>();
         if (wsdlVersion != null && !"".equals(wsdlVersion)) {
             options.add("-wv");
             options.add(wsdlVersion);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/IDLToWSDLPlugin.java
----------------------------------------------------------------------
diff --git a/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/IDLToWSDLPlugin.java b/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/IDLToWSDLPlugin.java
index b5d073f..9fa6fe8 100644
--- a/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/IDLToWSDLPlugin.java
+++ b/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/IDLToWSDLPlugin.java
@@ -68,7 +68,7 @@ public class IDLToWSDLPlugin extends AbstractMojo {
             }
 
             if (doWork) {
-                List<Object> list = new ArrayList<Object>();
+                List<Object> list = new ArrayList<>();
                 list.add("-o");
                 list.add(outputDir);
                 list.addAll(idltowsdlOptions[x].getExtraargs());

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
----------------------------------------------------------------------
diff --git a/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java b/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
index efa047d..cab9898 100644
--- a/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
+++ b/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
@@ -82,7 +82,7 @@ public class WSDLToIDLPlugin extends AbstractMojo {
 
         outputDir.mkdirs();
         
-        List<URL> urlList = new ArrayList<URL>();
+        List<URL> urlList = new ArrayList<>();
         StringBuilder buf = new StringBuilder();
 
         try {
@@ -139,7 +139,7 @@ public class WSDLToIDLPlugin extends AbstractMojo {
                 }
     
                 if (doWork) {
-                    List<String> list = new ArrayList<String>();
+                    List<String> list = new ArrayList<>();
                     list.add("-d");
                     list.add(outputDir.getAbsolutePath());
                     if (wsdltoidlOptions[x].isCorbaEnabled()) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/Java2WADLMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/Java2WADLMojo.java b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/Java2WADLMojo.java
index 724e80c..b1b14e9 100644
--- a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/Java2WADLMojo.java
+++ b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/Java2WADLMojo.java
@@ -59,7 +59,7 @@ public class Java2WADLMojo extends AbstractMojo {
    
     
         
-    private List<ClassResourceInfo> classResourceInfos = new ArrayList<ClassResourceInfo>();
+    private List<ClassResourceInfo> classResourceInfos = new ArrayList<>();
     
         
     /**

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
----------------------------------------------------------------------
diff --git a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
index d411616..aeda298 100644
--- a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
+++ b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
@@ -59,7 +59,7 @@ public class ClassLoaderSwitcher {
                                     boolean useCompileClasspath,
                                     String classpath,
                                     List<?> classpathElements) {
-        List<URL> urlList = new ArrayList<URL>();
+        List<URL> urlList = new ArrayList<>();
         StringBuilder buf = new StringBuilder();
 
         

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
index 483d4f0..21fd51f 100644
--- a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
+++ b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
@@ -220,7 +220,7 @@ public class Java2WSMojo extends AbstractMojo {
             String cp = classLoaderSwitcher.switchClassLoader(project, false,
                                                               classpath, classpathElements);
             if (fork) {
-                List<String> artifactsPath = new ArrayList<String>(pluginArtifacts.size());
+                List<String> artifactsPath = new ArrayList<>(pluginArtifacts.size());
                 for (Artifact a : pluginArtifacts) {
                     File file = a.getFile();
                     if (file == null) {
@@ -243,7 +243,7 @@ public class Java2WSMojo extends AbstractMojo {
     }
 
     private List<String> initArgs(String cp) {
-        List<String> args = new ArrayList<String>();
+        List<String> args = new ArrayList<>();
 
         if (fork) {
             String[] split = additionalJvmArgs.split("\\s+");

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ClassLoaderSwitcher.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ClassLoaderSwitcher.java b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ClassLoaderSwitcher.java
index 9485fbd..bd1b8c1 100644
--- a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ClassLoaderSwitcher.java
+++ b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ClassLoaderSwitcher.java
@@ -63,7 +63,7 @@ public class ClassLoaderSwitcher {
     public Set<URI> switchClassLoader(MavenProject project,
                                          boolean useCompileClasspath,
                                          File classesDir) {
-        List<URL> urlList = new ArrayList<URL>();
+        List<URL> urlList = new ArrayList<>();
         StringBuilder buf = new StringBuilder();
         Set<URI> ret = new LinkedHashSet<URI>();
         

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/Option.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/Option.java b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/Option.java
index a80cc04..946038f 100644
--- a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/Option.java
+++ b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/Option.java
@@ -47,7 +47,7 @@ public class Option {
      * Extra arguments to pass to the command-line code generator. For compatibility as well as to
      * specify any extra flags not addressed by other parameters
      */
-    List<String> extraargs = new ArrayList<String>();
+    List<String> extraargs = new ArrayList<>();
 
     /**
      * Specifies JAXB binding files. Use spaces to separate multiple entries.
@@ -88,7 +88,7 @@ public class Option {
     /**
      * 
      */
-    private List<String> schemaPackagenames = new ArrayList<String>();
+    private List<String> schemaPackagenames = new ArrayList<>();
 
     public Option() {
         super();

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/OptionLoader.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/OptionLoader.java b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/OptionLoader.java
index b789eb2..3c8abc0 100644
--- a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/OptionLoader.java
+++ b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/OptionLoader.java
@@ -43,7 +43,7 @@ public final class OptionLoader {
     
     public static List<WadlOption> loadWsdlOptionsFromDependencies(MavenProject project, 
                                                                    Option defaultOptions, File outputDir) {
-        List<WadlOption> options = new ArrayList<WadlOption>();
+        List<WadlOption> options = new ArrayList<>();
         Set<Artifact> dependencies = project.getDependencyArtifacts();
         for (Artifact artifact : dependencies) {
             WadlOption option = generateWsdlOptionFromArtifact(artifact, outputDir);
@@ -92,7 +92,7 @@ public final class OptionLoader {
         throws MojoExecutionException {
 
         if (wadlBasedir == null) {
-            return new ArrayList<WadlOption>();
+            return new ArrayList<>();
         }
 
         if (!wadlBasedir.exists()) {
@@ -100,7 +100,7 @@ public final class OptionLoader {
         }
 
         List<File> wadlFiles = getWadlFiles(wadlBasedir, includes, excludes);
-        List<WadlOption> wadlOptions = new ArrayList<WadlOption>();
+        List<WadlOption> wadlOptions = new ArrayList<>();
         for (File wadl : wadlFiles) {
             WadlOption wadlOption = generateWadlOptionFromFile(wadl, defaultOptions, defaultOutputDir);
             if (wadlOption != null) {
@@ -128,7 +128,7 @@ public final class OptionLoader {
     private static List<File> getWadlFiles(File dir, String includes[], String excludes[])
         throws MojoExecutionException {
 
-        List<String> exList = new ArrayList<String>();
+        List<String> exList = new ArrayList<>();
         if (excludes != null) {
             exList.addAll(Arrays.asList(excludes));
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WADL2JavaMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WADL2JavaMojo.java b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WADL2JavaMojo.java
index cbbc10b..3ce347d 100644
--- a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WADL2JavaMojo.java
+++ b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WADL2JavaMojo.java
@@ -136,7 +136,7 @@ public class WADL2JavaMojo extends AbstractCodeGeneratorMojo {
      */
     private List<WadlOption> createWadlOptionsFromScansAndExplicitWadlOptions(File classesDir) 
         throws MojoExecutionException {
-        List<WadlOption> effectiveOptions = new ArrayList<WadlOption>();
+        List<WadlOption> effectiveOptions = new ArrayList<>();
         mergeOptions(effectiveOptions);
         downloadRemoteDocs(effectiveOptions);
         if (effectiveOptions.isEmpty()) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WadlOption.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WadlOption.java b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WadlOption.java
index 85989e2..0d19d71 100644
--- a/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WadlOption.java
+++ b/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/wadlto/WadlOption.java
@@ -141,7 +141,7 @@ public class WadlOption extends Option {
     }
 
     public List<String> generateCommandLine(File outputDirFile, URI basedir, URI wadlURI, boolean debug) {
-        List<String> list = new ArrayList<String>();
+        List<String> list = new ArrayList<>();
         addIfNotNull(list, outputDirFile, "-d");
         for (String binding : getBindingFiles()) {
             File bindingFile = new File(binding);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java b/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
index ed8807d..a47f4a4 100644
--- a/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
+++ b/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
@@ -97,7 +97,7 @@ public class WSDLValidatorMojo extends AbstractMojo {
     private List<File> getWsdlFiles(File dir)
         throws MojoExecutionException {
 
-        List<String> exList = new ArrayList<String>();
+        List<String> exList = new ArrayList<>();
         if (excludes != null) {
             exList.addAll(Arrays.asList(excludes));
         }
@@ -129,7 +129,7 @@ public class WSDLValidatorMojo extends AbstractMojo {
         if (doWork) {
             doneFile.delete();
             
-            List<String> list = new ArrayList<String>();
+            List<String> list = new ArrayList<>();
 
             // verbose arg
             if (verbose != null && verbose.booleanValue()) {
@@ -174,7 +174,7 @@ public class WSDLValidatorMojo extends AbstractMojo {
         
         markerDirectory.mkdirs();
         
-        List<File> wsdls = new ArrayList<File>();
+        List<File> wsdls = new ArrayList<>();
         if (wsdlRoot != null && wsdlRoot.exists()) {
             wsdls.addAll(getWsdlFiles(wsdlRoot));
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/internal/CXFController.java
----------------------------------------------------------------------
diff --git a/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/internal/CXFController.java b/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/internal/CXFController.java
index 0daf0e7..6a8fc4c 100644
--- a/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/internal/CXFController.java
+++ b/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/internal/CXFController.java
@@ -45,7 +45,7 @@ public class CXFController {
     private ConfigurationAdmin configAdmin;
 
     public List<Bus> getBusses() {
-        List<Bus> busses = new ArrayList<Bus>();
+        List<Bus> busses = new ArrayList<>();
         try {
             ServiceReference[] references = bundleContext.getServiceReferences(Bus.class.getName(), null);
             if (references != null) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocOutInterceptorTest.java
----------------------------------------------------------------------
diff --git a/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocOutInterceptorTest.java b/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocOutInterceptorTest.java
index 54082c1..0e8c670 100644
--- a/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocOutInterceptorTest.java
+++ b/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocOutInterceptorTest.java
@@ -170,7 +170,7 @@ public class ColocOutInterceptorTest extends Assert {
 
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         ex.put(Endpoint.class, sep);
@@ -284,7 +284,7 @@ public class ColocOutInterceptorTest extends Assert {
     }
 
     private void verifyIsColocatedWithEmptyList() {
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         //Local var
         Endpoint sep = control.createMock(Endpoint.class);
         Service ses = control.createMock(Service.class);
@@ -304,7 +304,7 @@ public class ColocOutInterceptorTest extends Assert {
     private void verifyIsColocatedWithDifferentService() {
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         //Local var
@@ -330,7 +330,7 @@ public class ColocOutInterceptorTest extends Assert {
     private void verifyIsColocatedWithDifferentEndpoint() {
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         BindingOperationInfo sboi = control.createMock(BindingOperationInfo.class);
@@ -363,7 +363,7 @@ public class ColocOutInterceptorTest extends Assert {
     private void verifyIsColocatedWithDifferentOperation() {
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         BindingOperationInfo sboi = control.createMock(BindingOperationInfo.class);
@@ -405,7 +405,7 @@ public class ColocOutInterceptorTest extends Assert {
         colocOut = new TestColocOutInterceptor1();
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         BindingOperationInfo sboi = control.createMock(BindingOperationInfo.class);
@@ -468,7 +468,7 @@ public class ColocOutInterceptorTest extends Assert {
         colocOut = new TestColocOutInterceptor1();
         //Funtion Param
         Server s1 = control.createMock(Server.class);
-        List<Server> list = new ArrayList<Server>();
+        List<Server> list = new ArrayList<>();
         list.add(s1);        
         Endpoint sep = control.createMock(Endpoint.class);
         BindingOperationInfo sboi = control.createMock(BindingOperationInfo.class);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocUtilTest.java
----------------------------------------------------------------------
diff --git a/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocUtilTest.java b/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocUtilTest.java
index 8937e1e..f569aea 100644
--- a/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocUtilTest.java
+++ b/rt/bindings/coloc/src/test/java/org/apache/cxf/binding/coloc/ColocUtilTest.java
@@ -176,13 +176,13 @@ public class ColocUtilTest extends Assert {
         
         boolean match = ColocUtil.isSameFaultInfo(null, null);
         assertEquals("Should return true", true, match);
-        List<FaultInfo> fil1 = new ArrayList<FaultInfo>();
+        List<FaultInfo> fil1 = new ArrayList<>();
         match = ColocUtil.isSameFaultInfo(fil1, null);
         assertEquals("Should not find a match", false, match);
         match = ColocUtil.isSameFaultInfo(null, fil1);
         assertEquals("Should not find a match", false, match);
         
-        List<FaultInfo> fil2 = new ArrayList<FaultInfo>();
+        List<FaultInfo> fil2 = new ArrayList<>();
         match = ColocUtil.isSameFaultInfo(fil1, fil2);
         
         QName fn1 = new QName("A", "B");

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaBindingFactory.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaBindingFactory.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaBindingFactory.java
index 6485cf1..fabcbf3 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaBindingFactory.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaBindingFactory.java
@@ -54,7 +54,7 @@ public class CorbaBindingFactory extends AbstractWSDLBindingFactory
         );
 
     
-    protected List<String> transportIds = new ArrayList<String>(DEFAULT_NAMESPACES);
+    protected List<String> transportIds = new ArrayList<>(DEFAULT_NAMESPACES);
     protected OrbConfig orbConfig = new OrbConfig();
 
     public CorbaBindingFactory() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaDestination.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaDestination.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaDestination.java
index cc8a0a1..87a6da4 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaDestination.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaDestination.java
@@ -222,7 +222,7 @@ public class CorbaDestination implements MultiplexDestination {
         }
         
         
-        List<String> orbArgs = new ArrayList<String>(orbConfig.getOrbArgs());
+        List<String> orbArgs = new ArrayList<>(orbConfig.getOrbArgs());
 
         String scheme = addressURI.getScheme();
         // A corbaloc address gives us host and port information to use when
@@ -393,7 +393,7 @@ public class CorbaDestination implements MultiplexDestination {
     }
 
     protected POA createPOA(String name, POA parentPOA, POAManager poaManager) {
-        List<Policy> policies = new ArrayList<Policy>();
+        List<Policy> policies = new ArrayList<>();
         policies.add(parentPOA
                 .create_thread_policy(ThreadPolicyValue.ORB_CTRL_MODEL));
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaMessage.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaMessage.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaMessage.java
index 77ce931..39f972c 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaMessage.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/CorbaMessage.java
@@ -53,7 +53,7 @@ public class CorbaMessage extends AbstractWrappedMessage {
             list = msg.getList();
             corbaTypeMap = msg.getCorbaTypeMap();
         } else {
-            this.arguments = new ArrayList<CorbaStreamable>();    
+            this.arguments = new ArrayList<>();    
         }        
     }
 
@@ -84,7 +84,7 @@ public class CorbaMessage extends AbstractWrappedMessage {
 
     public final void addStreamableArgument(CorbaStreamable arg) {
         if (this.arguments == null) {
-            this.arguments = new ArrayList<CorbaStreamable>(1);
+            this.arguments = new ArrayList<>(1);
         }
 
         this.arguments.add(arg);
@@ -97,7 +97,7 @@ public class CorbaMessage extends AbstractWrappedMessage {
 
     public final void setStreamableArguments(CorbaStreamable[] data) {
         if (this.arguments == null) {
-            this.arguments = new ArrayList<CorbaStreamable>(data.length);
+            this.arguments = new ArrayList<>(data.length);
         }
 
         for (CorbaStreamable streamable : data) {         

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/interceptors/CorbaStreamOutInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/interceptors/CorbaStreamOutInterceptor.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/interceptors/CorbaStreamOutInterceptor.java
index 3bdd194..c544ef4 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/interceptors/CorbaStreamOutInterceptor.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/interceptors/CorbaStreamOutInterceptor.java
@@ -74,7 +74,7 @@ public class CorbaStreamOutInterceptor extends AbstractPhaseInterceptor<Message>
         }
         OperationType opType = boi.getExtensor(OperationType.class);
         List<ParamType> paramTypes = opType.getParam();
-        List<ArgType> params = new ArrayList<ArgType>();
+        List<ArgType> params = new ArrayList<>();
         for (Iterator<ParamType> iter = paramTypes.iterator(); iter.hasNext();) {
             ParamType param = iter.next();
             if (!param.getMode().equals(ModeType.OUT)) {
@@ -94,7 +94,7 @@ public class CorbaStreamOutInterceptor extends AbstractPhaseInterceptor<Message>
 
         ArgType returnParam = opType.getReturn();
         List<ParamType> paramTypes = opType.getParam();
-        List<ArgType> params = new ArrayList<ArgType>();
+        List<ArgType> params = new ArrayList<>();
         if (returnParam != null) {
             params.add(returnParam);
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaDSIServant.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaDSIServant.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaDSIServant.java
index c99874b..663d41b 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaDSIServant.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaDSIServant.java
@@ -88,7 +88,7 @@ public class CorbaDSIServant extends DynamicImplementation {
             }
 
             List<String> bases = bindType.getBases();
-            interfaces = new ArrayList<String>();
+            interfaces = new ArrayList<>();
             interfaces.add(bindType.getRepositoryID());
             for (Iterator<String> iter = bases.iterator(); iter.hasNext();) {
                 interfaces.add(iter.next());

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
index d1d85ea..182024f 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
@@ -522,7 +522,7 @@ public class CorbaObjectReader {
             CorbaSequenceHandler sequenceObj = (CorbaSequenceHandler)obj;
             List<CorbaObjectHandler> seqElements = sequenceObj.getElements();
             int length = stream.read_ulong();
-            List<CorbaObjectHandler> elements = new ArrayList<CorbaObjectHandler>(length);
+            List<CorbaObjectHandler> elements = new ArrayList<>(length);
             
             // Simply checking the bound won't handle our recursive types.  We need to check for the
             // existance of template, which will be present for all unbounded sequences and for bound

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
index 9122d70..ede89cd 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
@@ -361,7 +361,7 @@ public class CorbaStreamWriter implements XMLStreamWriter {
         }
 
         public Iterator<String> getPrefixes(String namespaceURI) {
-            Set<String> set = new HashSet<String>();
+            Set<String> set = new HashSet<>();
             for (Map.Entry<String, String> entry : map.entrySet()) {
                 if (namespaceURI.equals(entry.getValue())) {
                     set.add(entry.getKey());

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/OrbConfigurer.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/OrbConfigurer.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/OrbConfigurer.java
index 14dd7e8..cd860ce 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/OrbConfigurer.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/OrbConfigurer.java
@@ -31,7 +31,7 @@ import org.apache.cxf.binding.corba.CorbaBindingFactory;
 public class OrbConfigurer  {
 
     private CorbaBindingFactory factory;
-    private List<String> orbArgs = new ArrayList<String>();
+    private List<String> orbArgs = new ArrayList<>();
     private Properties orbProperties = new Properties();
 
     public OrbConfigurer() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaAnyEventProducer.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaAnyEventProducer.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaAnyEventProducer.java
index 576e3d3..f6c57fe 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaAnyEventProducer.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaAnyEventProducer.java
@@ -66,11 +66,11 @@ public class CorbaAnyEventProducer extends AbstractStartEndEventProducer {
 
             XMLEventFactory factory = XMLEventFactory.newInstance();
 
-            attributes = new ArrayList<Attribute>();
+            attributes = new ArrayList<>();
             attributes.add(factory.createAttribute(new QName(W3CConstants.NU_SCHEMA_XSI, "type"), 
                                                    ANY_TYPE_PREFIX + ":" 
                                                    + containedSchemaType.getLocalPart())); 
-            namespaces = new ArrayList<Namespace>();
+            namespaces = new ArrayList<>();
             namespaces.add(factory.createNamespace(ANY_TYPE_PREFIX,
                                                    containedSchemaType.getNamespaceURI()));
         }
@@ -80,7 +80,7 @@ public class CorbaAnyEventProducer extends AbstractStartEndEventProducer {
         if (containedProducer instanceof AbstractStartEndEventProducer) {
             iterator = ((AbstractStartEndEventProducer)containedProducer).getNestedTypes();
         } else {
-            List<CorbaTypeEventProducer> prods = new ArrayList<CorbaTypeEventProducer>();
+            List<CorbaTypeEventProducer> prods = new ArrayList<>();
             CorbaSimpleAnyContainedTypeEventProducer simpleProducer = 
                 new CorbaSimpleAnyContainedTypeEventProducer(containedProducer.getText());
             prods.add(simpleProducer);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaArrayHandler.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaArrayHandler.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaArrayHandler.java
index 5eea870..1e856c1 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaArrayHandler.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaArrayHandler.java
@@ -27,7 +27,7 @@ import org.omg.CORBA.TypeCode;
 
 public class CorbaArrayHandler extends CorbaObjectHandler {
 
-    private List<CorbaObjectHandler> elements = new ArrayList<CorbaObjectHandler>();
+    private List<CorbaObjectHandler> elements = new ArrayList<>();
     
     public CorbaArrayHandler(QName arrayName, QName arrayIdlType, TypeCode arrayTC, Object arrayType) {
         super(arrayName, arrayIdlType, arrayTC, arrayType);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaExceptionHandler.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaExceptionHandler.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaExceptionHandler.java
index 741ea33..7220b9b 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaExceptionHandler.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaExceptionHandler.java
@@ -29,7 +29,7 @@ import org.omg.CORBA.TypeCode;
 
 public class CorbaExceptionHandler extends CorbaObjectHandler {
 
-    List<CorbaObjectHandler> members = new ArrayList<CorbaObjectHandler>();
+    List<CorbaObjectHandler> members = new ArrayList<>();
     String id;
     
     public CorbaExceptionHandler(QName exName, QName exIdlType, TypeCode exTC, Object exType) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaObjectReferenceEventProducer.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaObjectReferenceEventProducer.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaObjectReferenceEventProducer.java
index 3b5b33a..840bd0f 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaObjectReferenceEventProducer.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaObjectReferenceEventProducer.java
@@ -51,7 +51,7 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
     static final List<Attribute> IS_NIL_OBJ_REF_ATTRS;
     static {
         XMLEventFactory factory = XMLEventFactory.newInstance();
-        IS_NIL_OBJ_REF_ATTRS = new ArrayList<Attribute>();
+        IS_NIL_OBJ_REF_ATTRS = new ArrayList<>();
         IS_NIL_OBJ_REF_ATTRS.add(factory.createAttribute(new QName(XSI_NAMESPACE_URI, "nil", "xsi"), "true"));
     }
     private static final String INFER_FROM_TYPE_ID = "InferFromTypeId";
@@ -71,7 +71,7 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
             return;
         }
 
-        List<CorbaTypeEventProducer> objRefProducers = new ArrayList<CorbaTypeEventProducer>();
+        List<CorbaTypeEventProducer> objRefProducers = new ArrayList<>();
         
         String address = orb.object_to_string(handler.getReference());
         objRefProducers.add(new CorbaAddressEventProducer(address));
@@ -219,7 +219,7 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
                                           CorbaInterfaceNameEventProducer intf) {
             name = new QName(CorbaObjectReferenceHelper.ADDRESSING_NAMESPACE_URI, "Metadata");
 
-            List<CorbaTypeEventProducer> metaDataProducers = new ArrayList<CorbaTypeEventProducer>();
+            List<CorbaTypeEventProducer> metaDataProducers = new ArrayList<>();
             metaDataProducers.add(svc);
 
             if (intf != null) {
@@ -230,7 +230,7 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
             
             if (location != null) {
                 XMLEventFactory factory = XMLEventFactory.newInstance();
-                metaAttrs = new ArrayList<Attribute>();
+                metaAttrs = new ArrayList<>();
                 metaAttrs.add(factory.createAttribute(
                         new QName(WSDLI_NAMESPACE_URI, "wsdlLocation", "objrefns1"), location));
             }
@@ -267,10 +267,10 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
             
             XMLEventFactory factory = XMLEventFactory.newInstance();
 
-            attributes = new ArrayList<Attribute>();
+            attributes = new ArrayList<>();
             attributes.add(factory.createAttribute("EndpointName", ep));
 
-            namespaces = new ArrayList<Namespace>();
+            namespaces = new ArrayList<>();
             namespaces.add(factory.createNamespace("objrefns2", svc.getNamespaceURI()));
         }
 
@@ -320,7 +320,7 @@ public final class CorbaObjectReferenceEventProducer extends AbstractStartEndEve
                              "InterfaceName");
             
             XMLEventFactory factory = XMLEventFactory.newInstance();
-            namespaces = new ArrayList<Namespace>();
+            namespaces = new ArrayList<>();
             namespaces.add(factory.createNamespace("objrefns2", intf.getNamespaceURI()));
         }
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaSequenceHandler.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaSequenceHandler.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaSequenceHandler.java
index 7cda810..2d0ad23 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaSequenceHandler.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaSequenceHandler.java
@@ -27,7 +27,7 @@ import org.omg.CORBA.TypeCode;
 
 public class CorbaSequenceHandler extends CorbaObjectHandler {
 
-    private List<CorbaObjectHandler> elements = new ArrayList<CorbaObjectHandler>();
+    private List<CorbaObjectHandler> elements = new ArrayList<>();
     private CorbaObjectHandler templateElement;
     private boolean hasRecursiveTypeElement;
     

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaStructHandler.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaStructHandler.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaStructHandler.java
index 95c4c08..0f65fe1 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaStructHandler.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaStructHandler.java
@@ -28,7 +28,7 @@ import org.omg.CORBA.TypeCode;
 
 public class CorbaStructHandler extends CorbaObjectHandler {
 
-    List<CorbaObjectHandler> members = new ArrayList<CorbaObjectHandler>();
+    List<CorbaObjectHandler> members = new ArrayList<>();
     
     public CorbaStructHandler(QName structName, QName structIdlType, TypeCode structTC, Object structType) {
         super(structName, structIdlType, structTC, structType);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionEventProducer.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionEventProducer.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionEventProducer.java
index 1a9e60b..268eada 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionEventProducer.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionEventProducer.java
@@ -31,7 +31,7 @@ import org.omg.CORBA.ORB;
 
 public class CorbaUnionEventProducer extends AbstractStartEndEventProducer {
 
-    static final List<Attribute> IS_NIL_ATTRIBUTE_LIST = new ArrayList<Attribute>();
+    static final List<Attribute> IS_NIL_ATTRIBUTE_LIST = new ArrayList<>();
     static {
         XMLEventFactory factory = XMLEventFactory.newInstance();
         IS_NIL_ATTRIBUTE_LIST.add(factory.createAttribute(
@@ -54,7 +54,7 @@ public class CorbaUnionEventProducer extends AbstractStartEndEventProducer {
                         CorbaHandlerUtils.getTypeEventProducer(contents, serviceInfo, orb);
                     currentEventProducer = new SkipStartEndEventProducer(contentEventProducer, name);
                 } else {
-                    List<CorbaObjectHandler> list = new ArrayList<CorbaObjectHandler>();
+                    List<CorbaObjectHandler> list = new ArrayList<>();
                     list.add(contents);
                     iterator = list.iterator();
                 }

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionHandler.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionHandler.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionHandler.java
index 72fcf68..c51105c 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionHandler.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaUnionHandler.java
@@ -37,9 +37,9 @@ public class CorbaUnionHandler extends CorbaObjectHandler {
 
     private CorbaObjectHandler discriminator;
     private CorbaObjectHandler value;
-    private List<CorbaObjectHandler> cases = new ArrayList<CorbaObjectHandler>();
+    private List<CorbaObjectHandler> cases = new ArrayList<>();
     private int defaultIndex;
-    private List<String> labels = new ArrayList<String>();
+    private List<String> labels = new ArrayList<>();
 
     public CorbaUnionHandler(QName unionName, QName unionIdlType, TypeCode unionTC, Object unionType) {
         super(unionName, unionIdlType, unionTC, unionType);

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/OrbConfig.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/OrbConfig.java b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/OrbConfig.java
index c814f83..6a4bc83 100644
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/OrbConfig.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/OrbConfig.java
@@ -47,7 +47,7 @@ public class OrbConfig {
 
     protected String orbClass;
     protected String orbSingletonClass;
-    protected List<String> orbArgs = new ArrayList<String>();
+    protected List<String> orbArgs = new ArrayList<>();
     protected Properties orbProperties = new Properties();
     
     public OrbConfig() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/corba/src/test/java/org/apache/cxf/binding/corba/CorbaBindingFactoryTest.java
----------------------------------------------------------------------
diff --git a/rt/bindings/corba/src/test/java/org/apache/cxf/binding/corba/CorbaBindingFactoryTest.java b/rt/bindings/corba/src/test/java/org/apache/cxf/binding/corba/CorbaBindingFactoryTest.java
index 39d67a1..084f63b 100644
--- a/rt/bindings/corba/src/test/java/org/apache/cxf/binding/corba/CorbaBindingFactoryTest.java
+++ b/rt/bindings/corba/src/test/java/org/apache/cxf/binding/corba/CorbaBindingFactoryTest.java
@@ -133,7 +133,7 @@ public class CorbaBindingFactoryTest extends Assert {
                          "SimpleCORBAService", 
                          "SimpleCORBAPort");
         
-        List<String> strs = new ArrayList<String>();
+        List<String> strs = new ArrayList<>();
         strs.add("one");
         strs.add("two");
         factory.setTransportIds(strs);        

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/HeaderUtil.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/HeaderUtil.java b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/HeaderUtil.java
index d449fe4..e46088c 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/HeaderUtil.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/HeaderUtil.java
@@ -50,7 +50,7 @@ public final class HeaderUtil {
     }
 
     private static Set<QName> getHeaderQNames(BindingMessageInfo bmi) {
-        Set<QName> set = new HashSet<QName>();
+        Set<QName> set = new HashSet<>();
         List<MessagePartInfo> mps = bmi.getMessageInfo().getMessageParts();
         List<ExtensibilityElement> extList = bmi.getExtensors(ExtensibilityElement.class);
         if (extList != null) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/00503840/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SOAPBindingUtil.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SOAPBindingUtil.java b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SOAPBindingUtil.java
index 23327e8..2ff077d 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SOAPBindingUtil.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SOAPBindingUtil.java
@@ -207,7 +207,7 @@ public final class SOAPBindingUtil {
     }
 
     public static List<SoapHeader> getSoapHeaders(List<ExtensibilityElement> exts) {
-        List<SoapHeader> headers = new ArrayList<SoapHeader>();
+        List<SoapHeader> headers = new ArrayList<>();
         if (exts != null) {
             for (ExtensibilityElement ext : exts) {
                 if (isSOAPHeader(ext)) {
@@ -250,7 +250,7 @@ public final class SOAPBindingUtil {
     }
 
     public static List<SoapHeader> getBindingInputSOAPHeaders(BindingOperation bop) {
-        List<SoapHeader> headers = new ArrayList<SoapHeader>();
+        List<SoapHeader> headers = new ArrayList<>();
         BindingInput bindingInput = bop.getBindingInput();
         if (bindingInput != null) {
             for (Object obj : bindingInput.getExtensibilityElements()) {
@@ -276,7 +276,7 @@ public final class SOAPBindingUtil {
     }
 
     public static List<SoapHeader> getBindingOutputSOAPHeaders(BindingOperation bop) {
-        List<SoapHeader> headers = new ArrayList<SoapHeader>();
+        List<SoapHeader> headers = new ArrayList<>();
         BindingOutput bindingOutput = bop.getBindingOutput();
         if (bindingOutput != null) {
             for (Object obj : bindingOutput.getExtensibilityElements()) {
@@ -309,7 +309,7 @@ public final class SOAPBindingUtil {
     }
 
     public static List<SoapFault> getBindingOperationSoapFaults(BindingOperation bop) {
-        List<SoapFault> faults = new ArrayList<SoapFault>();
+        List<SoapFault> faults = new ArrayList<>();
         for (Object obj : bop.getBindingFaults().values()) {
             if (!(obj instanceof BindingFault)) {
                 continue;


Mime
View raw message