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
18 23 0 0

ejava.projects.esales.dto.Account

Bug Category Details Line Priority
ejava.projects.esales.dto.Account.getEndDate() may expose internal representation by returning Account.endDate MALICIOUS_CODE EI_EXPOSE_REP 267 Medium
ejava.projects.esales.dto.Account.getStartDate() may expose internal representation by returning Account.startDate MALICIOUS_CODE EI_EXPOSE_REP 243 Medium
new ejava.projects.esales.dto.Account(String, String, String, String, String, String, Date, Date, List) may expose internal representation by storing an externally mutable object into Account.endDate MALICIOUS_CODE EI_EXPOSE_REP2 110 Medium
new ejava.projects.esales.dto.Account(String, String, String, String, String, String, Date, Date, List) may expose internal representation by storing an externally mutable object into Account.startDate MALICIOUS_CODE EI_EXPOSE_REP2 109 Medium
ejava.projects.esales.dto.Account.setEndDate(Date) may expose internal representation by storing an externally mutable object into Account.endDate MALICIOUS_CODE EI_EXPOSE_REP2 279 Medium
ejava.projects.esales.dto.Account.setStartDate(Date) may expose internal representation by storing an externally mutable object into Account.startDate MALICIOUS_CODE EI_EXPOSE_REP2 255 Medium

ejava.projects.esales.dto.Adapter4

Bug Category Details Line Priority
ejava.projects.esales.dto.Adapter4.unmarshal(String) invokes inefficient new Integer(String) constructor; use Integer.valueOf(String) instead PERFORMANCE DM_NUMBER_CTOR 19 Medium

ejava.projects.esales.dto.Auction

Bug Category Details Line Priority
ejava.projects.esales.dto.Auction.getEndTime() may expose internal representation by returning Auction.endTime MALICIOUS_CODE EI_EXPOSE_REP 270 Medium
ejava.projects.esales.dto.Auction.getStartTime() may expose internal representation by returning Auction.startTime MALICIOUS_CODE EI_EXPOSE_REP 246 Medium
new ejava.projects.esales.dto.Auction(String, Object, String, String, String, Date, Date, Float, List, Float, Object, Object, Integer) may expose internal representation by storing an externally mutable object into Auction.endTime MALICIOUS_CODE EI_EXPOSE_REP2 132 Medium
new ejava.projects.esales.dto.Auction(String, Object, String, String, String, Date, Date, Float, List, Float, Object, Object, Integer) may expose internal representation by storing an externally mutable object into Auction.startTime MALICIOUS_CODE EI_EXPOSE_REP2 131 Medium
ejava.projects.esales.dto.Auction.setEndTime(Date) may expose internal representation by storing an externally mutable object into Auction.endTime MALICIOUS_CODE EI_EXPOSE_REP2 282 Medium
ejava.projects.esales.dto.Auction.setStartTime(Date) may expose internal representation by storing an externally mutable object into Auction.startTime MALICIOUS_CODE EI_EXPOSE_REP2 258 Medium

ejava.projects.esales.dto.Bid

Bug Category Details Line Priority
ejava.projects.esales.dto.Bid.getBidTime() may expose internal representation by returning Bid.bidTime MALICIOUS_CODE EI_EXPOSE_REP 106 Medium
new ejava.projects.esales.dto.Bid(Date, Float, Object, Object, Integer) may expose internal representation by storing an externally mutable object into Bid.bidTime MALICIOUS_CODE EI_EXPOSE_REP2 90 Medium
ejava.projects.esales.dto.Bid.setBidTime(Date) may expose internal representation by storing an externally mutable object into Bid.bidTime MALICIOUS_CODE EI_EXPOSE_REP2 118 Medium

ejava.projects.esales.dto.Image

Bug Category Details Line Priority
ejava.projects.esales.dto.Image.getImage() may expose internal representation by returning Image.image MALICIOUS_CODE EI_EXPOSE_REP 115 Medium
new ejava.projects.esales.dto.Image(String, Object, byte[], Integer) may expose internal representation by storing an externally mutable object into Image.image MALICIOUS_CODE EI_EXPOSE_REP2 79 Medium
ejava.projects.esales.dto.Image.setImage(byte[]) may expose internal representation by storing an externally mutable object into Image.image MALICIOUS_CODE EI_EXPOSE_REP2 126 Medium

ejava.projects.esales.xml.SampleGen

Bug Category Details Line Priority
Write to static field ejava.projects.esales.xml.SampleGen.accountId from instance method ejava.projects.esales.xml.SampleGen.createAccount(String, String, String) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 84 Medium
Write to static field ejava.projects.esales.xml.SampleGen.addressId from instance method ejava.projects.esales.xml.SampleGen.createAddress1(String) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 71 Medium
Write to static field ejava.projects.esales.xml.SampleGen.auctionId from instance method ejava.projects.esales.xml.SampleGen.createAuction(Account, Account[]) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 46 Medium
Write to static field ejava.projects.esales.xml.SampleGen.bidId from instance method ejava.projects.esales.xml.SampleGen.createAuction(Account, Account[]) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 61 Medium