SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.3
Threshold is medium
Effort is
Summary
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
42 | 57 | 0 | 0 |
Files
com.codebox.bean.NonDeserializableBean
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.codebox.bean.NonDeserializableBean.getList() may expose internal representation by returning NonDeserializableBean.list | MALICIOUS_CODE | EI_EXPOSE_REP | 33 | Medium |
com.codebox.bean.SampleBean
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.codebox.bean.SampleBean.getByteArray() may expose internal representation by returning SampleBean.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP | 94 | Medium |
com.codebox.bean.SampleBean.getConcurrentMap() may expose internal representation by returning SampleBean.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP | 61 | Medium |
com.codebox.bean.SampleBean.getDate() may expose internal representation by returning SampleBean.date | MALICIOUS_CODE | EI_EXPOSE_REP | 127 | Medium |
com.codebox.bean.SampleBean.getList() may expose internal representation by returning SampleBean.list | MALICIOUS_CODE | EI_EXPOSE_REP | 55 | Medium |
com.codebox.bean.SampleBean.getMap() may expose internal representation by returning SampleBean.map | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
com.codebox.bean.SampleBean.getSampleDepthBean() may expose internal representation by returning SampleBean.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP | 52 | Medium |
com.codebox.bean.SampleBean.getStringArray() may expose internal representation by returning SampleBean.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP | 70 | Medium |
com.codebox.bean.SampleBean.getTreeSet() may expose internal representation by returning SampleBean.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP | 64 | Medium |
com.codebox.bean.SampleBean.setByteArray(Byte[]) may expose internal representation by storing an externally mutable object into SampleBean.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setConcurrentMap(ConcurrentMap) may expose internal representation by storing an externally mutable object into SampleBean.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setDate(Date) may expose internal representation by storing an externally mutable object into SampleBean.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setList(List) may expose internal representation by storing an externally mutable object into SampleBean.list | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setMap(Map) may expose internal representation by storing an externally mutable object into SampleBean.map | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setSampleDepthBean(SampleDepthBean) may expose internal representation by storing an externally mutable object into SampleBean.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setStringArray(String[]) may expose internal representation by storing an externally mutable object into SampleBean.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleBean.setTreeSet(TreeSet) may expose internal representation by storing an externally mutable object into SampleBean.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
com.codebox.bean.SampleDepthBean
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.codebox.bean.SampleDepthBean.getByteArray() may expose internal representation by returning SampleDepthBean.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP | 81 | Medium |
com.codebox.bean.SampleDepthBean.getConcurrentMap() may expose internal representation by returning SampleDepthBean.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP | 48 | Medium |
com.codebox.bean.SampleDepthBean.getDate() may expose internal representation by returning SampleDepthBean.date | MALICIOUS_CODE | EI_EXPOSE_REP | 114 | Medium |
com.codebox.bean.SampleDepthBean.getList() may expose internal representation by returning SampleDepthBean.list | MALICIOUS_CODE | EI_EXPOSE_REP | 42 | Medium |
com.codebox.bean.SampleDepthBean.getMap() may expose internal representation by returning SampleDepthBean.map | MALICIOUS_CODE | EI_EXPOSE_REP | 45 | Medium |
com.codebox.bean.SampleDepthBean.getSampleBean() may expose internal representation by returning SampleDepthBean.sampleBean | MALICIOUS_CODE | EI_EXPOSE_REP | 136 | Medium |
com.codebox.bean.SampleDepthBean.getSampleDepthBean() may expose internal representation by returning SampleDepthBean.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP | 139 | Medium |
com.codebox.bean.SampleDepthBean.getStringArray() may expose internal representation by returning SampleDepthBean.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP | 57 | Medium |
com.codebox.bean.SampleDepthBean.getTreeSet() may expose internal representation by returning SampleDepthBean.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP | 51 | Medium |
com.codebox.bean.SampleDepthBean.setByteArray(Byte[]) may expose internal representation by storing an externally mutable object into SampleDepthBean.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setConcurrentMap(ConcurrentMap) may expose internal representation by storing an externally mutable object into SampleDepthBean.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setDate(Date) may expose internal representation by storing an externally mutable object into SampleDepthBean.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setList(List) may expose internal representation by storing an externally mutable object into SampleDepthBean.list | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setMap(Map) may expose internal representation by storing an externally mutable object into SampleDepthBean.map | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setSampleBean(SampleBean) may expose internal representation by storing an externally mutable object into SampleDepthBean.sampleBean | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setSampleDepthBean(SampleDepthBean) may expose internal representation by storing an externally mutable object into SampleDepthBean.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setStringArray(String[]) may expose internal representation by storing an externally mutable object into SampleDepthBean.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleDepthBean.setTreeSet(TreeSet) may expose internal representation by storing an externally mutable object into SampleDepthBean.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
com.codebox.bean.SampleExtensionBean
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.codebox.bean.SampleExtensionBean overrides equals in SampleBean and may not be symmetric | CORRECTNESS | EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC | 24 | Medium |
com.codebox.bean.SampleValueObject
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.codebox.bean.SampleValueObject.getByteArray() may expose internal representation by returning SampleValueObject.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP | 95 | Medium |
com.codebox.bean.SampleValueObject.getConcurrentMap() may expose internal representation by returning SampleValueObject.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP | 62 | Medium |
com.codebox.bean.SampleValueObject.getDate() may expose internal representation by returning SampleValueObject.date | MALICIOUS_CODE | EI_EXPOSE_REP | 128 | Medium |
com.codebox.bean.SampleValueObject.getList() may expose internal representation by returning SampleValueObject.list | MALICIOUS_CODE | EI_EXPOSE_REP | 56 | Medium |
com.codebox.bean.SampleValueObject.getMap() may expose internal representation by returning SampleValueObject.map | MALICIOUS_CODE | EI_EXPOSE_REP | 59 | Medium |
com.codebox.bean.SampleValueObject.getSampleDepthBean() may expose internal representation by returning SampleValueObject.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP | 53 | Medium |
com.codebox.bean.SampleValueObject.getStringArray() may expose internal representation by returning SampleValueObject.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP | 71 | Medium |
com.codebox.bean.SampleValueObject.getTreeSet() may expose internal representation by returning SampleValueObject.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP | 65 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.byteArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.concurrentMap | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.list | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.map | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.sampleDepthBean | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.stringArray | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
new com.codebox.bean.SampleValueObject(EmptyBean, SampleDepthBean, List, Map, ConcurrentMap, TreeSet, String, String[], Boolean, Integer, Long, Double, Float, Character, Byte, Byte[], boolean, int, long, double, float, char, byte, BigDecimal, UUID, Instant, Date, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, ZonedDateTime, Boolean) may expose internal representation by storing an externally mutable object into SampleValueObject.treeSet | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
com.codebox.instance.ClassInstanceTest$1
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class com.codebox.instance.ClassInstanceTest$1 at new com.codebox.instance.ClassInstanceTest$1(ClassInstanceTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 59 | Medium |
com.codebox.instance.ClassInstanceTest$2
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class com.codebox.instance.ClassInstanceTest$2 at new com.codebox.instance.ClassInstanceTest$2(ClassInstanceTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 83 | Medium |
com.codebox.instance.ConstructorInstanceTest$1
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class com.codebox.instance.ConstructorInstanceTest$1 at new com.codebox.instance.ConstructorInstanceTest$1(ConstructorInstanceTest, Constructor) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 57 | Medium |
com.codebox.instance.ConstructorInstanceTest$2
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class com.codebox.instance.ConstructorInstanceTest$2 at new com.codebox.instance.ConstructorInstanceTest$2(ConstructorInstanceTest, Constructor) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 85 | Medium |
com.codebox.instance.ConstructorInstanceTest$3
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class com.codebox.instance.ConstructorInstanceTest$3 at new com.codebox.instance.ConstructorInstanceTest$3(ConstructorInstanceTest, Constructor) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 113 | Medium |