This is an automated email from the ASF dual-hosted git repository.

snagel pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/2.x by this push:
     new 72128eb  Fix for NUTCH-2446 by Kenneth McFarland
72128eb is described below

commit 72128eb5e863afea66ff5be7a7a2df824af688e8
Author: Kenneth McFarland <[email protected]>
AuthorDate: Mon Oct 23 00:22:57 2017 -0700

    Fix for NUTCH-2446 by Kenneth McFarland
---
 src/java/org/apache/nutch/net/URLFilterChecker.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/java/org/apache/nutch/net/URLFilterChecker.java 
b/src/java/org/apache/nutch/net/URLFilterChecker.java
index ee4daf7..f2ab19c 100644
--- a/src/java/org/apache/nutch/net/URLFilterChecker.java
+++ b/src/java/org/apache/nutch/net/URLFilterChecker.java
@@ -91,8 +91,9 @@ public class URLFilterChecker {
 
     BufferedReader in = new BufferedReader(new InputStreamReader(System.in, 
StandardCharsets.UTF_8));
     String line;
+    URLFilters filters = new URLFilters(this.conf);
+
     while ((line = in.readLine()) != null) {
-      URLFilters filters = new URLFilters(this.conf);
       String out = filters.filter(line);
       if (out != null) {
         System.out.print("+");

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to