[
https://issues.apache.org/jira/browse/NUTCH-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214790#comment-16214790
]
ASF GitHub Bot commented on NUTCH-2446:
---------------------------------------
sebastian-nagel closed pull request #231: Fix for NUTCH-2446 by Kenneth
McFarland
URL: https://github.com/apache/nutch/pull/231
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/java/org/apache/nutch/net/URLFilterChecker.java
b/src/java/org/apache/nutch/net/URLFilterChecker.java
index 89a3d00a8..6fb3cf20e 100644
--- a/src/java/org/apache/nutch/net/URLFilterChecker.java
+++ b/src/java/org/apache/nutch/net/URLFilterChecker.java
@@ -90,8 +90,9 @@ private void checkAll() throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
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("+");
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> URLFiltersCheck fix
> -------------------
>
> Key: NUTCH-2446
> URL: https://issues.apache.org/jira/browse/NUTCH-2446
> Project: Nutch
> Issue Type: Bug
> Environment: master
> Reporter: kenneth mcfarland
> Assignee: kenneth mcfarland
> Priority: Minor
>
> Currently URLFilterChecker.checkAll() creates a URLFilters object repeatedly
> when conf does not change.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)