1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Use diamond type

This commit is contained in:
Johnny Lim
2017-11-20 02:25:30 +09:00
committed by Rob Winch
parent cfe40358bd
commit 57353d18e5
221 changed files with 423 additions and 428 deletions
@@ -172,7 +172,7 @@ public class JndiDnsResolver implements DnsResolver {
private static class DefaultInitialContextFactory implements InitialContextFactory {
public DirContext getCtx() {
Hashtable<String, String> env = new Hashtable<String, String>();
Hashtable<String, String> env = new Hashtable<>();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.dns.DnsContextFactory");
env.put(Context.PROVIDER_URL, "dns:"); // This is needed for IBM JDK/JRE
@@ -103,7 +103,7 @@ public class AuthenticationSimpleHttpInvokerRequestExecutorTests {
private class MockHttpURLConnection extends HttpURLConnection {
private Map<String, String> requestProperties = new HashMap<String, String>();
private Map<String, String> requestProperties = new HashMap<>();
public MockHttpURLConnection(URL u) {
super(u);