beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Knowles (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BEAM-933) Findbugs doesn't pass in Java Examples
Date Mon, 17 Jul 2017 22:56:00 GMT

     [ https://issues.apache.org/jira/browse/BEAM-933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kenneth Knowles resolved BEAM-933.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

> Findbugs doesn't pass in Java Examples
> --------------------------------------
>
>                 Key: BEAM-933
>                 URL: https://issues.apache.org/jira/browse/BEAM-933
>             Project: Beam
>          Issue Type: Bug
>          Components: examples-java
>            Reporter: Daniel Halperin
>            Assignee: Almas Shaikh
>              Labels: newbie, starter
>             Fix For: 2.2.0
>
>
> {code}
> [INFO] --- findbugs-maven-plugin:3.0.1:check (default) @ beam-examples-java ---
> [INFO] BugInstance size is 4
> [INFO] Error size is 0
> [INFO] Total bugs: 4
> [INFO] Possible null pointer dereference in org.apache.beam.examples.complete.TfIdf.listInputDocuments(TfIdf$Options)
due to return value of called method [org.apache.beam.examples.complete.TfIdf, org.apache.beam.examples.complete.TfIdf]
Dereferenced at TfIdf.java:[line 124]Known null at TfIdf.java:[line 124]
> [INFO] Bad attempt to compute absolute value of signed 32-bit hashcode in org.apache.beam.examples.complete.TopWikipediaSessions$ComputeTopSessions$1.processElement(DoFn$ProcessContext)
[org.apache.beam.examples.complete.TopWikipediaSessions$ComputeTopSessions$1] At TopWikipediaSessions.java:[line
165]
> [INFO] org.apache.beam.examples.complete.TrafficRoutes$StationSpeed defines compareTo(TrafficRoutes$StationSpeed)
and uses Object.equals() [org.apache.beam.examples.complete.TrafficRoutes$StationSpeed] At
TrafficRoutes.java:[line 113]
> [INFO] org.apache.beam.examples.cookbook.TriggerExample$InsertDelays.processElement(DoFn$ProcessContext)
uses the nextDouble method of Random to generate a random integer; using nextInt is more efficient
[org.apache.beam.examples.cookbook.TriggerExample$InsertDelays] At TriggerExample.java:[line
479]
> [INFO]     
> {code}



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

Mime
View raw message