SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.3.0

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
40 20 0 0

Files

Class Bugs
org.eclipse.jgit.lfs.InstallBuiltinLfsCommand 1
org.eclipse.jgit.lfs.LfsBlobLoader 1
org.eclipse.jgit.lfs.LfsPointer 2
org.eclipse.jgit.lfs.LfsPrePushHook 2
org.eclipse.jgit.lfs.SmudgeFilter 3
org.eclipse.jgit.lfs.errors.CorruptLongObjectException 4
org.eclipse.jgit.lfs.internal.AtomicObjectOutputStream 2
org.eclipse.jgit.lfs.internal.LfsConnectionFactory 3
org.eclipse.jgit.lfs.lib.LfsPointerFilter 1
org.eclipse.jgit.lfs.lib.LongObjectId 1

org.eclipse.jgit.lfs.InstallBuiltinLfsCommand

Bug Category Details Line Priority
org.eclipse.jgit.lfs.InstallBuiltinLfsCommand.setRepository(Repository) may expose internal representation by storing an externally mutable object into InstallBuiltinLfsCommand.repository MALICIOUS_CODE EI_EXPOSE_REP2 96 Medium

org.eclipse.jgit.lfs.LfsBlobLoader

Bug Category Details Line Priority
org.eclipse.jgit.lfs.LfsBlobLoader.getCachedBytes() may expose internal representation by returning LfsBlobLoader.cached MALICIOUS_CODE EI_EXPOSE_REP 76 Medium

org.eclipse.jgit.lfs.LfsPointer

Bug Category Details Line Priority
org.eclipse.jgit.lfs.LfsPointer.getOid() may expose internal representation by returning LfsPointer.oid MALICIOUS_CODE EI_EXPOSE_REP 92 Medium
new org.eclipse.jgit.lfs.LfsPointer(AnyLongObjectId, long) may expose internal representation by storing an externally mutable object into LfsPointer.oid MALICIOUS_CODE EI_EXPOSE_REP2 82 Medium

org.eclipse.jgit.lfs.LfsPrePushHook

Bug Category Details Line Priority
org.eclipse.jgit.lfs.LfsPrePushHook.setRefs(Collection) may expose internal representation by storing an externally mutable object into LfsPrePushHook.refs MALICIOUS_CODE EI_EXPOSE_REP2 93 Medium

org.eclipse.jgit.lfs.SmudgeFilter

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.eclipse.jgit.lfs.SmudgeFilter.downloadLfsResource(Lfs, Repository, LfsPointer[]) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 201 Medium

org.eclipse.jgit.lfs.errors.CorruptLongObjectException

Bug Category Details Line Priority
org.eclipse.jgit.lfs.errors.CorruptLongObjectException.getContentHash() may expose internal representation by returning CorruptLongObjectException.contentHash MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
org.eclipse.jgit.lfs.errors.CorruptLongObjectException.getId() may expose internal representation by returning CorruptLongObjectException.id MALICIOUS_CODE EI_EXPOSE_REP 53 Medium
new org.eclipse.jgit.lfs.errors.CorruptLongObjectException(AnyLongObjectId, AnyLongObjectId, String) may expose internal representation by storing an externally mutable object into CorruptLongObjectException.contentHash MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium
new org.eclipse.jgit.lfs.errors.CorruptLongObjectException(AnyLongObjectId, AnyLongObjectId, String) may expose internal representation by storing an externally mutable object into CorruptLongObjectException.id MALICIOUS_CODE EI_EXPOSE_REP2 42 Medium

org.eclipse.jgit.lfs.internal.AtomicObjectOutputStream

Bug Category Details Line Priority
org.eclipse.jgit.lfs.internal.AtomicObjectOutputStream.getId() may expose internal representation by returning AtomicObjectOutputStream.id MALICIOUS_CODE EI_EXPOSE_REP 78 Medium
new org.eclipse.jgit.lfs.internal.AtomicObjectOutputStream(Path, AnyLongObjectId) may expose internal representation by storing an externally mutable object into AtomicObjectOutputStream.id MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

org.eclipse.jgit.lfs.internal.LfsConnectionFactory

Bug Category Details Line Priority

org.eclipse.jgit.lfs.lib.LfsPointerFilter

Bug Category Details Line Priority
org.eclipse.jgit.lfs.lib.LfsPointerFilter defines clone() but doesn't implement Cloneable BAD_PRACTICE CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE 75 High

org.eclipse.jgit.lfs.lib.LongObjectId

Bug Category Details Line Priority
Public static org.eclipse.jgit.lfs.lib.LongObjectId.zeroId() may expose internal representation by returning LongObjectId.ZEROID MALICIOUS_CODE MS_EXPOSE_REP 47 Medium