Skip to content

Commit 63ad297

Browse files
authored
Merge pull request #158 from signalfx/no_static
don't access a static field from constructor
2 parents e66a6d2 + eaca1e1 commit 63ad297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/splunk/ibm/mq/metricscollector/QueueCollectionBuddy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.io.IOException;
3333
import java.util.HashMap;
3434
import java.util.List;
35+
import java.util.Map;
3536
import org.slf4j.Logger;
3637
import org.slf4j.LoggerFactory;
3738

@@ -41,7 +42,7 @@
4142
*/
4243
final class QueueCollectionBuddy {
4344
private static final Logger logger = LoggerFactory.getLogger(QueueCollectionBuddy.class);
44-
private static HashMap<Integer, LongGauge> gauges;
45+
private Map<Integer, LongGauge> gauges;
4546

4647
private final QueueCollectorSharedState sharedState;
4748
private final LongGauge onqtimeShort;

0 commit comments

Comments
 (0)