The following document contains the results of SpotBugs
SpotBugs Version is 4.3.0
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
26 | 29 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.eclipse.jgit.junit.LocalDiskRepositoryTestCase.reportDeleteFailure(boolean, File, Exception): new java.io.PrintStream(OutputStream) | I18N | DM_DEFAULT_ENCODING | 243 | High |
org.eclipse.jgit.junit.LocalDiskRepositoryTestCase.tearDown() forces garbage collection; extremely dubious except in benchmarking code | PERFORMANCE | DM_GC | 186 | High |
Exceptional return value of java.io.File.delete() ignored in org.eclipse.jgit.junit.LocalDiskRepositoryTestCase.write(String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 540 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.eclipse.jgit.junit.LocalDiskRepositoryTestCase$CleanupThread.run() forces garbage collection; extremely dubious except in benchmarking code | PERFORMANCE | DM_GC | 615 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.eclipse.jgit.junit.MockSystemReader.getJGitConfig() may expose internal representation by returning MockSystemReader.jgitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 184 | Medium |
org.eclipse.jgit.junit.MockSystemReader.getSystemConfig() may expose internal representation by returning MockSystemReader.systemGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 190 | Medium |
org.eclipse.jgit.junit.MockSystemReader.getUserConfig() may expose internal representation by returning MockSystemReader.userGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 179 | Medium |
org.eclipse.jgit.junit.MockSystemReader.openJGitConfig(Config, FS) may expose internal representation by returning MockSystemReader.jgitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 323 | Medium |
org.eclipse.jgit.junit.MockSystemReader.openSystemConfig(Config, FS) may expose internal representation by returning MockSystemReader.systemGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 173 | Medium |
org.eclipse.jgit.junit.MockSystemReader.openUserConfig(Config, FS) may expose internal representation by returning MockSystemReader.userGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP | 166 | Medium |
org.eclipse.jgit.junit.MockSystemReader.setJGitConfig(FileBasedConfig) may expose internal representation by storing an externally mutable object into MockSystemReader.jgitConfig | MALICIOUS_CODE | EI_EXPOSE_REP2 | 97 | Medium |
org.eclipse.jgit.junit.MockSystemReader.setSystemGitConfig(FileBasedConfig) may expose internal representation by storing an externally mutable object into MockSystemReader.systemGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP2 | 109 | Medium |
org.eclipse.jgit.junit.MockSystemReader.setUserGitConfig(FileBasedConfig) may expose internal representation by storing an externally mutable object into MockSystemReader.userGitConfig | MALICIOUS_CODE | EI_EXPOSE_REP2 | 86 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread public/protected field: org.eclipse.jgit.junit.RepositoryTestCase.trash | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 190 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.eclipse.jgit.junit.TestRepository.getRepository() may expose internal representation by returning TestRepository.db | MALICIOUS_CODE | EI_EXPOSE_REP | 168 | Medium |
org.eclipse.jgit.junit.TestRepository.getRevWalk() may expose internal representation by returning TestRepository.pool | MALICIOUS_CODE | EI_EXPOSE_REP | 177 | Medium |
org.eclipse.jgit.junit.TestRepository.git() may expose internal representation by returning TestRepository.git | MALICIOUS_CODE | EI_EXPOSE_REP | 188 | Medium |
new org.eclipse.jgit.junit.TestRepository(Repository, RevWalk, MockSystemReader) may expose internal representation by storing an externally mutable object into TestRepository.db | MALICIOUS_CODE | EI_EXPOSE_REP2 | 151 | Medium |
new org.eclipse.jgit.junit.TestRepository(Repository, RevWalk, MockSystemReader) may expose internal representation by storing an externally mutable object into TestRepository.mockSystemReader | MALICIOUS_CODE | EI_EXPOSE_REP2 | 155 | Medium |
new org.eclipse.jgit.junit.TestRepository(Repository, RevWalk, MockSystemReader) may expose internal representation by storing an externally mutable object into TestRepository.pool | MALICIOUS_CODE | EI_EXPOSE_REP2 | 153 | Medium |
Exceptional return value of java.io.File.setReadOnly() ignored in org.eclipse.jgit.junit.TestRepository.packAndPrune() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 924 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.eclipse.jgit.junit.TestRepository$CommitBuilder.author() may expose internal representation by returning TestRepository$CommitBuilder.author | MALICIOUS_CODE | EI_EXPOSE_REP | 1267 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.committer() may expose internal representation by returning TestRepository$CommitBuilder.committer | MALICIOUS_CODE | EI_EXPOSE_REP | 1288 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.create() may expose internal representation by returning TestRepository$CommitBuilder.self | MALICIOUS_CODE | EI_EXPOSE_REP | 1355 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.author(PersonIdent) may expose internal representation by storing an externally mutable object into TestRepository$CommitBuilder.author | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1257 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.committer(PersonIdent) may expose internal representation by storing an externally mutable object into TestRepository$CommitBuilder.committer | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1278 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.ident(PersonIdent) may expose internal representation by storing an externally mutable object into TestRepository$CommitBuilder.author | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1244 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.ident(PersonIdent) may expose internal representation by storing an externally mutable object into TestRepository$CommitBuilder.committer | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1245 | Medium |
org.eclipse.jgit.junit.TestRepository$CommitBuilder.setTopLevelTree(ObjectId) may expose internal representation by storing an externally mutable object into TestRepository$CommitBuilder.topLevelTree | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1135 | Medium |