File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ public boolean equals(Object o) {
5656
5757 @ Override
5858 public int hashCode () {
59- // Do not use value matcher here to support value wildcards
6059 return Objects .hash (attributeName );
6160 }
6261
@@ -69,15 +68,12 @@ public String toString() {
6968
7069 /**
7170 * Verify if this matcher is matching provided attribute value. If this matcher holds null value
72- * then it is matching any attribute value
71+ * then it is matching any attribute value.
7372 *
7473 * @param value a value to be matched
7574 * @return true if this matcher is matching provided value, false otherwise.
7675 */
7776 boolean matchesValue (String value ) {
78- if (attributeValue == null ) {
79- return true ;
80- }
81- return Objects .equals (attributeValue , value );
77+ return (attributeValue == null ) || Objects .equals (attributeValue , value );
8278 }
8379}
You can’t perform that action at this time.
0 commit comments