nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2486) Compiler Warning: Unchecked / unsafe operations in MimeTypeIndexingFilter
Date Tue, 19 Dec 2017 14:57:00 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16296920#comment-16296920
] 

ASF GitHub Bot commented on NUTCH-2486:
---------------------------------------

lewismc closed pull request #267: NUTCH-2486: Fix unchecked / unsafe compiler warning
URL: https://github.com/apache/nutch/pull/267
 
 
   

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/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
b/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
index 84260b8c3..e374096cb 100644
--- a/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
+++ b/src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
@@ -171,7 +171,7 @@ public void setConf(Configuration conf) {
   private void readConfiguration(Reader reader) throws IOException {
     BufferedReader in = new BufferedReader(reader);
     String line;
-    List rules = new ArrayList();
+    List<String> rules = new ArrayList<String>();
 
     while (null != (line = in.readLine())) {
       if (line.length() == 0) {


 

----------------------------------------------------------------
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:
users@infra.apache.org


> Compiler Warning: Unchecked / unsafe operations in MimeTypeIndexingFilter
> -------------------------------------------------------------------------
>
>                 Key: NUTCH-2486
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2486
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.14
>            Reporter: Moreno Feltscher
>             Fix For: 1.14
>
>
> When compiling Nutch source, the following warning is being shown:
> {quote}
> Note: src/plugin/mimetype-filter/src/java/org/apache/nutch/indexer/filter/MimeTypeIndexingFilter.java
uses unchecked or unsafe operations.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message