FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.0

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
237 7 0 1

Files

Class Bugs
com.atlassian.plugins.rest.common.error.jersey.NotFoundExceptionMapper 1
com.atlassian.plugins.rest.common.expand.EntityCrawler 1
com.atlassian.plugins.rest.common.security.jersey.SecurityExceptionMapper 1
com.atlassian.plugins.rest.common.util.ReflectionUtils 4

com.atlassian.plugins.rest.common.error.jersey.NotFoundExceptionMapper

Bug Category Details Line
Unchecked/unconfirmed cast from java.lang.Throwable to com.sun.jersey.api.NotFoundException in com.atlassian.plugins.rest.common.error.jersey.NotFoundExceptionMapper.toResponse(Throwable) STYLE BC_UNCONFIRMED_CAST 13

com.atlassian.plugins.rest.common.expand.EntityCrawler

Bug Category Details Line
Redundant nullcheck of expandable, which is known to be non-null in com.atlassian.plugins.rest.common.expand.EntityCrawler.getExpandable(Field) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 101

com.atlassian.plugins.rest.common.security.jersey.SecurityExceptionMapper

Bug Category Details Line
Unchecked/unconfirmed cast from java.lang.Throwable to java.lang.SecurityException in com.atlassian.plugins.rest.common.security.jersey.SecurityExceptionMapper.toResponse(Throwable) STYLE BC_UNCONFIRMED_CAST 13

com.atlassian.plugins.rest.common.util.ReflectionUtils

Bug Category Details Line
com.atlassian.plugins.rest.common.util.ReflectionUtils.getFieldValue(Field, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 24
com.atlassian.plugins.rest.common.util.ReflectionUtils.getFieldValue(Field, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 36
com.atlassian.plugins.rest.common.util.ReflectionUtils.setFieldValue(Field, Object, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 55
com.atlassian.plugins.rest.common.util.ReflectionUtils.setFieldValue(Field, Object, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 67