public GarbageCollectorExports() {
this(ManagementFactory.getGarbageCollectorMXBeans());
}
GarbageCollectorExports(List<GarbageCollectorMXBean> garbageCollectors) {
this.garbageCollectors = garbageCollectors;
<BUG>for (final GarbageCollectorMXBean gc : garbageCollectors) {
if (!labelValues.containsKey(gc)) {
String gcName = WHITESPACE.matcher(gc.getName()).replaceAll("-");
labelValues.put(gc, Arrays.asList(gcName));
}
}
}
MetricFamilySamples collectorCountMetric() {</BUG>
ArrayList<MetricFamilySamples.Sample> samples = new ArrayList<MetricFamilySamples.Sample>();

public GarbageCollectorExports() {
this(ManagementFactory.getGarbageCollectorMXBeans());
}
GarbageCollectorExports(List<GarbageCollectorMXBean> garbageCollectors) {
this.garbageCollectors = garbageCollectors;
}
public List<MetricFamilySamples> collect() {
ArrayList<MetricFamilySamples.Sample> samples = new ArrayList<MetricFamilySamples.Sample>();
