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
17 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 187 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 246 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 59 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 659 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 1123 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 910 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 345 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 178 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 667 Medium

org.apache.maven.wagon.http.HttpWagonTestCase

Bug Category Details Line Priority
Invocation of toString on expectedResponseCodes in org.apache.maven.wagon.http.HttpWagonTestCase.checkHandlerResult(List, int[]) CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 945 High
Found reliance on default encoding in org.apache.maven.wagon.http.HttpWagonTestCase.writeTestFile(File, String, String): String.getBytes() I18N DM_DEFAULT_ENCODING 1608 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 1790 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 1863 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 1946 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 107 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 109 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 1745 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 769 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 707 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFailureNonRepeatableStream() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1122 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.http.HttpWagonTestCase.testRedirectPutFailureNonRepeatableStream() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1097 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 1063 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 1036 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 999 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 958 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 894 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 867 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 824 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 783 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 1603 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 2104 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 1179 Medium