Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ private void assertComponentIssue(Set<AnalyzerMessage> issues) {
|| (expectations.expectIssueAtFileLevel() && !issue.getInputComponent().isFile())) {
throw new AssertionError(String.format("Expected the issue to be raised at %s level, not at %s level", component, otherComponent));
}
if (!expectedMessage.equals(issue.getMessage())) {
if (!Objects.equals(expectedMessage, issue.getMessage())) {
throw new AssertionError(String.format("Expected the issue message to be:%n\t\"%s\"%nbut was:%n\t\"%s\"", expectedMessage, issue.getMessage()));
}
}
Expand Down Expand Up @@ -484,7 +484,7 @@ private void assertSuperfluousFlows() {
}

private static void assertAttributeMatch(AnalyzerMessage issue, Object value, Map<Expectations.IssueAttribute, Object> attributes, Expectations.IssueAttribute attribute) {
if (attributes.containsKey(attribute) && !value.equals(attribute.get(attributes))) {
if (attributes.containsKey(attribute) && !Objects.equals(value, attribute.get(attributes))) {
throw new AssertionError(
String.format("line %d attribute mismatch for '%s'. Expected: '%s', but was: '%s'",
issue.getLine(),
Expand Down
Loading