The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is max
| Class | Bugs |
|---|---|
| ejava.examples.txhotel.blimpl.HotelReservationImpl | 3 |
| 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 |