Fix/suppress PMD CompareObjectsWithEquals findings (#11476)
Newer PMD versions discover more CompareObjectsWithEquals findings. Related to https://github.com/openhab/static-code-analysis/pull/423 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -177,7 +177,7 @@ public class Property implements AttributeChanged {
|
||||
Value value;
|
||||
Boolean isDecimal = null;
|
||||
|
||||
if (attributes.name == "") {
|
||||
if (attributes.name.isEmpty()) {
|
||||
attributes.name = propertyID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user