From bd38893f555531735ac6d2297a7202f851634ddf Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 10 May 2014 22:34:18 +0100 Subject: [PATCH] Rename rabbitHealthIndicator bean Rename the rabbitHealthIndicator bean which was accidentally named redisHealthIndicator. --- .../autoconfigure/HealthIndicatorAutoConfiguration.java | 2 +- .../boot/actuate/health/RabbitHealthIndicator.java | 2 +- .../boot/actuate/health/RabbitHealthIndicatorTests.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java index 917d2d51b6..69b179b7e9 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java @@ -149,7 +149,7 @@ public class HealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "rabbitHealthIndicator") - public HealthIndicator redisHealthIndicator() { + public HealthIndicator rabbitHealthIndicator() { if (this.rabbitTemplates.size() == 1) { return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator() .next()); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/RabbitHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/RabbitHealthIndicator.java index 70a00ff6ec..bc7f54387e 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/RabbitHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/RabbitHealthIndicator.java @@ -28,7 +28,7 @@ import com.rabbitmq.client.Channel; /** * Simple implementation of a {@link HealthIndicator} returning status information for the * RabbitMQ messaging system. - * + * * @author Christian Dupuis * @since 1.1.0 */ diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/RabbitHealthIndicatorTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/RabbitHealthIndicatorTests.java index 0c372ed315..78dec489eb 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/RabbitHealthIndicatorTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/RabbitHealthIndicatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 the original author or authors. + * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ import static org.junit.Assert.assertNotNull; /** * Tests for {@link RabbitHealthIndicator}. - * + * * @author Christian Dupuis */ public class RabbitHealthIndicatorTests {