Apache Nutch is an extensible and scalable web crawler
simplified code: use diamond operator
Sebastian Nagelf3af9a5467eb
diff --git a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.javaindex 4d1a0cc99..90b256a27 100644--- a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java+++ b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java@@ -573,7 +573,7 @@ public abstract class HttpBase implements Protocol {if (input == null || input.length == 0) {return new HashMap<String, String>();}- HashMap<String, String> hm = new HashMap<String, String>();+ HashMap<String, String> hm = new HashMap<>();for (int i = 0; i < input.length; i++) {if (!"".equals(input[i].trim())) {hm.put(input[i], input[i]);