Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 850ed97

Browse files
#148 make findbugs happy
1 parent 12789e6 commit 850ed97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/jmxtrans/agent/Query.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ private void collectAndExportAttribute(MBeanServer mbeanServer, OutputWriter out
223223
Map<String, Object> mapData = (Map<String, Object>) attributeValue;
224224
if (key == null) {
225225
// Get for all keys
226-
for (String key : mapData.keySet()) {
227-
value = mapData.get(key);
226+
for (Map.Entry<String, Object> entry : mapData.entrySet()) {
227+
String key = entry.getKey();
228+
value = entry.getValue();
228229
processAttributeValue(outputWriter, objectName, attribute, key, value);
229230
}
230231
return;

0 commit comments

Comments
 (0)