FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
18 38 0 0

org.apache.maven.wagon.FileTestUtils

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.wagon.FileTestUtils.generateFile(String, String): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 108 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.FileTestUtils.createDir(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 74 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.FileTestUtils.generateFile(String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 106 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.FileTestUtils.getTestOutputDir() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 96 Medium

org.apache.maven.wagon.StreamingWagonTestCase

Bug Category Details Line Priority
org.apache.maven.wagon.StreamingWagonTestCase.testFailedGetIfNewerToStream() may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 186 Medium
org.apache.maven.wagon.StreamingWagonTestCase.testFailedGetToStream() may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 78 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.StreamingWagonTestCase.putStream() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 245 Medium

org.apache.maven.wagon.WagonTestCase

Bug Category Details Line Priority
org.apache.maven.wagon.WagonTestCase.logger isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 58 High
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.WagonTestCase.assertNotExists(Wagon, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 665 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.WagonTestCase.createFileRepository(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1114 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.WagonTestCase.putFile(String, String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 901 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.WagonTestCase.setupGetIfNewerTest(Wagon, boolean, int) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 351 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.WagonTestCase.setupRepositories() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 184 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.WagonTestCase.writeTestFile(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 673 Medium

org.apache.maven.wagon.http.HttpWagonTestCase

Bug Category Details Line Priority
Dead store to serverConnector in org.apache.maven.wagon.http.HttpWagonTestCase.testList429() STYLE DLS_DEAD_LOCAL_STORE 352 Medium
Invocation of toString on expectedResponseCodes in org.apache.maven.wagon.http.HttpWagonTestCase.checkHandlerResult(List, int[]) CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 1023 High
Found reliance on default encoding in org.apache.maven.wagon.http.HttpWagonTestCase.writeTestFile(File, String, String): String.getBytes() I18N DM_DEFAULT_ENCODING 1609 High
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.runTestPut(int) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1786 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.runTestSecuredPut(AuthenticationInfo, int) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1859 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.runTestSecuredPutFromStream(AuthenticationInfo, int, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1942 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.setupWagonTestingFixtures() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 104 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.setupWagonTestingFixtures() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 106 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testPut429() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1746 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectGet() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 847 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectGetToStream() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 785 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFileRelativeUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1141 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFileRelativeUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1114 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFileWithFullUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1077 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFileWithFullUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1036 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFromStreamRelativeUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 972 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFromStreamRelativeUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 945 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFromStreamWithFullUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 902 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFromStreamWithFullUrl() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 861 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testWagonGetFileList() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 163 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.writeTestFile(File, String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1604 Medium

org.apache.maven.wagon.http.HttpWagonTestCase$AuthorizingProxyHandler

Bug Category Details Line Priority
Field HttpWagonTestCase$AuthorizingProxyHandler.handlerRequestResponses masks field in superclass org.apache.maven.wagon.http.HttpWagonTestCase$TestHeaderHandler CORRECTNESS MF_CLASS_MASKS_FIELD Not available Medium

org.apache.maven.wagon.http.HttpWagonTestCase$PutHandler

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase$PutHandler.handle(String, Request, HttpServletRequest, HttpServletResponse) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 2100 Medium

org.apache.maven.wagon.http.HttpWagonTestCase$RedirectHandler

Bug Category Details Line Priority
Unread field: org.apache.maven.wagon.http.HttpWagonTestCase$RedirectHandler.reason PERFORMANCE URF_UNREAD_FIELD 1190 Medium