SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.5

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
23 4 0 0

Files

Class Bugs
org.apache.shardingsphere.infra.util.directory.ClasspathResourceDirectoryReader 1
org.apache.shardingsphere.infra.util.props.MultiSourceProperties 1
org.apache.shardingsphere.infra.util.reflection.ReflectionUtils 2

org.apache.shardingsphere.infra.util.directory.ClasspathResourceDirectoryReader

Bug Category Details Line Priority
Redundant nullcheck of directoryUrlEnumeration, which is known to be non-null in org.apache.shardingsphere.infra.util.directory.ClasspathResourceDirectoryReader.read(ClassLoader, String) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 119 Medium

org.apache.shardingsphere.infra.util.props.MultiSourceProperties

Bug Category Details Line Priority
org.apache.shardingsphere.infra.util.props.MultiSourceProperties doesn't override java.util.Properties.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

org.apache.shardingsphere.infra.util.reflection.ReflectionUtils

Bug Category Details Line Priority
Public method org.apache.shardingsphere.infra.util.reflection.ReflectionUtils.getStaticFieldValue(Class, String) uses reflection to modify a field it gets in its parameter which could increase the accessibility of any class. MALICIOUS_CODE REFLF_REFLECTION_MAY_INCREASE_ACCESSIBILITY_OF_FIELD 89 Medium
Public method org.apache.shardingsphere.infra.util.reflection.ReflectionUtils.setStaticFieldValue(Class, String, Object) uses reflection to modify a field it gets in its parameter which could increase the accessibility of any class. MALICIOUS_CODE REFLF_REFLECTION_MAY_INCREASE_ACCESSIBILITY_OF_FIELD 110 Medium