From afb715680468d12d7f0df92c79fc1f2abeb90468 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 31 Oct 2014 18:52:25 +0000 Subject: [PATCH] Add missing method for Java 1.7 --- .../actuate/metrics/reader/MetricRegistryMetricReader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/reader/MetricRegistryMetricReader.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/reader/MetricRegistryMetricReader.java index 23bc169281..32270e6e80 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/reader/MetricRegistryMetricReader.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/reader/MetricRegistryMetricReader.java @@ -209,6 +209,11 @@ public class MetricRegistryMetricReader implements MetricReader, MetricRegistryL String name = iterator.next(); return MetricRegistryMetricReader.this.findOne(name); } + + @Override + public void remove() { + throw new UnsupportedOperationException("You cannot remove from this iterator."); + } }