SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
2 3 0 0

ejava.examples.txhotel.blimpl.HotelReservationImpl

Bug Category Details Line Priority
Primitive boxed just to call toString in ejava.examples.txhotel.blimpl.HotelReservationImpl.createReservation(Person, Date, Date) PERFORMANCE DM_BOXED_PRIMITIVE_TOSTRING 89 Medium
ejava.examples.txhotel.blimpl.HotelReservationImpl.createReservation(Person, Date, Date) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead PERFORMANCE DM_NUMBER_CTOR 89 Medium
Write to static field ejava.examples.txhotel.blimpl.HotelReservationImpl.counter from instance method ejava.examples.txhotel.blimpl.HotelReservationImpl.createReservation(Person, Date, Date) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 89 Medium