Closed bglamadrid closed 1 year ago
hey @bglamadrid I can take on this issue if you like .
if (!name.isBlank() && !target.getName().equals(name)) { target.setName(name); }
this will do I guess? removing the name != null
or anything else do I need to do?
@shivam-Purohit Correct, it is pretty much that simple! The Sonar issue itself explains it pretty well I think 🙂 the comparison to null is redundant because name
has a non-null constraint
Summary
Code Smell
Major
10min effort