Use diamond type
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user