From 6431feb6c1d56d241a7bd7507f299fb9bf9f9430 Mon Sep 17 00:00:00 2001 From: robsunday Date: Thu, 5 Dec 2024 10:14:50 +0100 Subject: [PATCH] Additional comments added --- .../contrib/jmxscraper/assertions/AttributeMatcher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java b/jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java index 196c703db..6e6f17919 100644 --- a/jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java +++ b/jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java @@ -51,6 +51,8 @@ public boolean equals(Object o) { return false; } AttributeMatcher other = (AttributeMatcher) o; + // Do not attributeValue into account so AttributeMatcher instances can be stored in collections + // with guarantee of uniqueness per attribute return Objects.equals(attributeName, other.attributeName); }