FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
84 11 0 0

au.gov.amsa.ais.AtonTypeDecoder

Bug Category Details Line Priority
Bad comparison of nonnegative value with 0 in au.gov.amsa.ais.AtonTypeDecoder.getAtonType(Integer) CORRECTNESS INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE 74 Medium
Return value of new AtonTypeDecoder() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 27 Medium

au.gov.amsa.ais.Internationalization

Bug Category Details Line Priority
Return value of new Internationalization() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 27 Medium

au.gov.amsa.ais.MariwebSslConnectMain

Bug Category Details Line Priority
Found reliance on default encoding in au.gov.amsa.ais.MariwebSslConnectMain.read(Socket, CountDownLatch): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 72 High

au.gov.amsa.ais.NmeaMessageExactEarthTimestamp

Bug Category Details Line Priority
Return value of getFollowingSequenceChecksum() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 37 Medium

au.gov.amsa.ais.ShipTypeDecoder

Bug Category Details Line Priority
Return value of new ShipTypeDecoder() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 27 Medium

au.gov.amsa.ais.rx.SocketReaderRunnable

Bug Category Details Line Priority
Found reliance on default encoding in au.gov.amsa.ais.rx.SocketReaderRunnable.run(): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 49 High

au.gov.amsa.ais.rx.Streams

Bug Category Details Line Priority
Hard coded reference to an absolute pathname in au.gov.amsa.ais.rx.Streams.main(String[]) STYLE DMI_HARDCODED_ABSOLUTE_FILENAME 785 Medium

au.gov.amsa.util.SixBit

Bug Category Details Line Priority
Switch statement found in au.gov.amsa.util.SixBit.convertSixBitToBits(String, int, boolean[], boolean[], int, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 72-84 Medium

au.gov.amsa.util.nmea.saver.FileFactoryPerDay

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in new au.gov.amsa.util.nmea.saver.FileFactoryPerDay(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 17 Medium

au.gov.amsa.util.nmea.saver.NmeaSaver$1

Bug Category Details Line Priority
Found reliance on default encoding in au.gov.amsa.util.nmea.saver.NmeaSaver$1.onNext(String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 99 High