The following document contains the results of FindBugs Report
FindBugs Version is 2.0.1
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 | 209 | 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 | 239 | 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 | 266 | 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 | 162 | 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 | 233 | 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 | 123 | Medium |
org.apache.maven.shared.tools.easymock.TestFileManager.createTempDir() calls Thread.sleep() with a lock held | MT_CORRECTNESS | SWL_SLEEP_WITH_LOCK_HELD | 114 | 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 | 73 | 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 | 53 | High |
org.apache.maven.shared.tools.easymock.TestUtils.readFile(File) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 73 | Medium |