From 99cd9bdc310d6dd7fa3956e0c93d310d5993cd42 Mon Sep 17 00:00:00 2001 From: izeye Date: Sun, 5 Jul 2015 15:55:00 +0900 Subject: [PATCH] Fix typo Closes gh-3416 --- .../actuate/metrics/writer/DropwizardMetricWriter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java index 8110d14821..7a8751aed9 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java @@ -94,16 +94,16 @@ public class DropwizardMetricWriter implements MetricWriter { else { final double gauge = value.getValue().doubleValue(); // Ensure we synchronize to avoid another thread pre-empting this thread after - // remove causing an error in CodaHale metrics - // NOTE: CodaHale provides no way to do this atomically - synchronized (getGuageLock(name)) { + // remove causing an error in Dropwizard Metrics + // NOTE: Dropwizard Metrics provides no way to do this atomically + synchronized (getGaugeLock(name)) { this.registry.remove(name); this.registry.register(name, new SimpleGauge(gauge)); } } } - private Object getGuageLock(String name) { + private Object getGaugeLock(String name) { Object lock = this.gaugeLocks.get(name); if (lock == null) { Object newLock = new Object();