You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2016/08/22 21:51:02 UTC

[4/5] nutch git commit: simplified code: use diamond operator

simplified code: use diamond operator


Project: http://git-wip-us.apache.org/repos/asf/nutch/repo
Commit: http://git-wip-us.apache.org/repos/asf/nutch/commit/f3af9a54
Tree: http://git-wip-us.apache.org/repos/asf/nutch/tree/f3af9a54
Diff: http://git-wip-us.apache.org/repos/asf/nutch/diff/f3af9a54

Branch: refs/heads/master
Commit: f3af9a5467eb74a9f85adf47a0f4814fa0b3392d
Parents: 33cdca7
Author: Sebastian Nagel <sn...@apache.org>
Authored: Mon Aug 22 17:39:40 2016 +0200
Committer: Sebastian Nagel <sn...@apache.org>
Committed: Mon Aug 22 17:39:40 2016 +0200

----------------------------------------------------------------------
 .../src/java/org/apache/nutch/protocol/http/api/HttpBase.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nutch/blob/f3af9a54/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
----------------------------------------------------------------------
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.java
index 4d1a0cc..90b256a 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]);