Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
10 11 0 0

Files

Class Bugs
dev.aherscu.qa.testrail.reporter.TestRailClient 9
dev.aherscu.qa.testrail.reporter.TestRailReportModel 1
dev.aherscu.qa.testrail.reporter.TestRailReporter 1

dev.aherscu.qa.testrail.reporter.TestRailClient

Bug Category Details Line Priority
Found reliance on default encoding in dev.aherscu.qa.testrail.reporter.TestRailClient.getAuthorization(String, String): new String(byte[]) I18N DM_DEFAULT_ENCODING 46 High
Found reliance on default encoding in dev.aherscu.qa.testrail.reporter.TestRailClient.getAuthorization(String, String): String.getBytes() I18N DM_DEFAULT_ENCODING 46 High
Found reliance on default encoding in dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 166 High
dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) may fail to close stream on exception BAD_PRACTICE OS_OPEN_STREAM_EXCEPTION_PATH 177 Low
dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) may fail to close stream on exception BAD_PRACTICE OS_OPEN_STREAM_EXCEPTION_PATH 233 Low
dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) may fail to close stream on exception BAD_PRACTICE OS_OPEN_STREAM_EXCEPTION_PATH 250 Low
dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) may fail to close stream on exception BAD_PRACTICE OS_OPEN_STREAM_EXCEPTION_PATH 166 Low
Redundant nullcheck of istream, which is known to be non-null in dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 249 Medium
Redundant nullcheck of istream, which is known to be non-null in dev.aherscu.qa.testrail.reporter.TestRailClient.sendRequest(String, String, Object) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 231 Low

dev.aherscu.qa.testrail.reporter.TestRailReportModel

Bug Category Details Line Priority
Overridable method saveScreenshot is called from constructor new dev.aherscu.qa.testrail.reporter.TestRailReportModel(TestRailReportModel$TestRailReportModelBuilder). MALICIOUS_CODE MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR 54 Low

dev.aherscu.qa.testrail.reporter.TestRailReporter

Bug Category Details Line Priority
Found reliance on default encoding in dev.aherscu.qa.testrail.reporter.TestRailReporter.addResultForCase(ScenarioModel, File, String): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 192 High