Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-933

Findbugs doesn't pass in Java Examples

    XMLWordPrintableJSON

Details

    Description

      [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]     
      

      Attachments

        Issue Links

          Activity

            People

              eralmas7 Almas Shaikh
              dhalperi Dan Halperin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: