We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b3ab3 commit 45ba126Copy full SHA for 45ba126
jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java
@@ -57,9 +57,6 @@ public String toString() {
57
* @return true if this matcher is matching provided value, false otherwise.
58
*/
59
boolean matchesValue(String value) {
60
- if (attributeValue == null) {
61
- return true;
62
- }
63
- return Objects.equals(attributeValue, value);
+ return attributeValue == null || attributeValue.equals(value);
64
}
65
0 commit comments