The following document contains the results of FindBugs Report
FindBugs Version is 2.0.2
Threshold is medium
Effort is min
Class | Bugs |
---|---|
org.apache.maven.shared.tools.easymock.TestFileManager | 7 |
org.apache.maven.shared.tools.easymock.TestUtils | 3 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.maven.shared.tools.easymock.TestFileManager.assertFileContents(File, String, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 210 | High |
Found reliance on default encoding in org.apache.maven.shared.tools.easymock.TestFileManager.createFile(File, String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 240 | High |
Found reliance on default encoding in org.apache.maven.shared.tools.easymock.TestFileManager.getFileContents(File): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 267 | High |
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.tools.easymock.TestFileManager.cleanUp() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 163 | Medium |
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.tools.easymock.TestFileManager.createFile(File, String, String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 234 | Medium |
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.tools.easymock.TestFileManager.createTempDir() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 124 | Medium |
org.apache.maven.shared.tools.easymock.TestFileManager.createTempDir() calls Thread.sleep() with a lock held | MT_CORRECTNESS | SWL_SLEEP_WITH_LOCK_HELD | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.maven.shared.tools.easymock.TestUtils.readFile(File): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 74 | High |
Found reliance on default encoding in org.apache.maven.shared.tools.easymock.TestUtils.writeToFile(File, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 54 | High |
org.apache.maven.shared.tools.easymock.TestUtils.readFile(File) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 74 | Medium |