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

Hudson commented on NUTCH-2852:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch ยป Nutch-trunk #128 (See 
[https://ci-builds.apache.org/job/Nutch/job/Nutch-trunk/128/])
NUTCH-2852 SpotBugs: Method invokes System.exit(...) (snagel: 
[https://github.com/apache/nutch/commit/417b8773231136eb48957f743c2bc3c21f624d4e])
* (edit) src/java/org/apache/nutch/indexer/IndexingFiltersChecker.java
* (edit) src/java/org/apache/nutch/parse/ParserChecker.java
* (edit) src/java/org/apache/nutch/util/AbstractChecker.java
* (edit) src/java/org/apache/nutch/net/URLNormalizerChecker.java
* (edit) src/java/org/apache/nutch/net/URLFilterChecker.java


> Method invokes System.exit(...) 9 bugs
> --------------------------------------
>
>                 Key: NUTCH-2852
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2852
>             Project: Nutch
>          Issue Type: Sub-task
>    Affects Versions: 1.18
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>            Priority: Major
>             Fix For: 1.20
>
>
> org.apache.nutch.indexer.IndexingFiltersChecker since first historized release
> In class org.apache.nutch.indexer.IndexingFiltersChecker
> In method org.apache.nutch.indexer.IndexingFiltersChecker.run(String[])
> At IndexingFiltersChecker.java:[line 96]
> Another occurrence at IndexingFiltersChecker.java:[line 129]
> org.apache.nutch.indexer.IndexingFiltersChecker.run(String[]) invokes 
> System.exit(...), which shuts down the entire virtual machine
> Invoking System.exit shuts down the entire Java virtual machine. This should 
> only been done when it is appropriate. Such calls make it hard or impossible 
> for your code to be invoked by other code. Consider throwing a 
> RuntimeException instead.
> Also occurs in
>    org.apache.nutch.net.URLFilterChecker since first historized release
>    org.apache.nutch.net.URLNormalizerChecker since first historized release
>    org.apache.nutch.parse.ParseSegment since first historized release
>    org.apache.nutch.parse.ParserChecker since first historized release
>    org.apache.nutch.service.NutchServer since first historized release
>    org.apache.nutch.tools.CommonCrawlDataDumper since first historized release
>    org.apache.nutch.tools.DmozParser since first historized release
>    org.apache.nutch.util.AbstractChecker since first historized release 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to