SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.0

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
61 11 0 2

com.meterware.simplestub.ClassLoadingSupport

Bug Category Details Line Priority
com.meterware.simplestub.ClassLoadingSupport.reloadClass(Class) creates a com.meterware.simplestub.ClassLoadingSupport$RedefiningClassLoader classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 35 Medium

com.meterware.simplestub.ClassUtils

Bug Category Details Line Priority
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 25 Medium
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 51 Medium

com.meterware.simplestub.ClassUtils$1

Bug Category Details Line Priority
Method lists Exception in its throws clause. BAD_PRACTICE THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION 25 Medium
Method lists Exception in its throws clause. BAD_PRACTICE THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION 27 Medium

com.meterware.simplestub.generation.NullStubGeneratorFactory

Bug Category Details Line Priority
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 32 Medium
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 37 Medium

com.meterware.simplestub.generation.javassist.JavassistStubGeneratorFactory

Bug Category Details Line Priority
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 36 Medium

com.meterware.simplestub.stubs.InMemoryFileSystem

Bug Category Details Line Priority
com.meterware.simplestub.stubs.InMemoryFileSystem.provider() may expose internal representation by returning InMemoryFileSystem.provider MALICIOUS_CODE EI_EXPOSE_REP 130 Medium
Method intentionally throws RuntimeException. BAD_PRACTICE THROWS_METHOD_THROWS_RUNTIMEEXCEPTION 104 Medium
Private method com.meterware.simplestub.stubs.InMemoryFileSystem.toBytes(String, String) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 99 Medium