SpotBugs Report

Project Information

Project: common-back (spotbugsMain)

SpotBugs version: 4.9.4

Code analyzed:



Metrics

12613 lines of code analyzed, in 164 classes, in 21 packages.

Metric Total Density*
High Priority Warnings 0.00
Medium Priority Warnings 1 0.08
Total Warnings 1 0.08

(* Defects per Thousand lines of non-commenting source statements)



Contents

Summary

Warning Type Number
Bad practice Warnings 1
Total 1

Warnings

Click on a warning row to see full context information.

Bad practice Warnings

Code Warning
ES Comparison of String parameter using == or != in com.common.back.service.MailService.CreateZipfile(String, String, String)

Details

ES_COMPARING_PARAMETER_STRING_WITH_EQ: Comparison of String parameter using == or !=

This code compares a java.lang.String parameter for reference equality using the == or != operators. Requiring callers to pass only String constants or interned strings to a method is unnecessarily fragile, and rarely leads to measurable performance gains. Consider using the equals(Object) method instead.

See CWE-595: Comparison of Object References Instead of Object Contents.