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:
@@ -173,7 +173,7 @@ public class AccountServlet extends HttpServlet {
|
||||
+ uri.substring(PROXY_URI_PART.length());
|
||||
|
||||
String postData = null;
|
||||
if (verb == "POST" || verb == "PUT") {
|
||||
if ("POST".equals(verb) || "PUT".equals(verb)) {
|
||||
postData = req.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
|
||||
}
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ public class FlashBriefingProfileHandler extends BaseThingHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
public boolean initialize(AccountHandler handler, String currentConfigurationJson) {
|
||||
updateState(CHANNEL_SAVE, OnOffType.OFF);
|
||||
if (updatePlayOnDevice) {
|
||||
|
||||
Reference in New Issue
Block a user