From 4d4f032c897c630f838543910c3d41b6f1eaea7f Mon Sep 17 00:00:00 2001 From: leonliu288 Date: Tue, 5 Dec 2023 01:15:44 -0500 Subject: [PATCH] spotless --- .../com/cas/challengeservice/config/BadgeListener.java | 7 ++++--- .../com/cas/challengeservice/config/RabbitMQConfig.java | 3 +-- .../java/com/cas/challengeservice/constant/Constants.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/challenge-service/src/main/java/com/cas/challengeservice/config/BadgeListener.java b/challenge-service/src/main/java/com/cas/challengeservice/config/BadgeListener.java index 904a419..7e229ba 100644 --- a/challenge-service/src/main/java/com/cas/challengeservice/config/BadgeListener.java +++ b/challenge-service/src/main/java/com/cas/challengeservice/config/BadgeListener.java @@ -1,5 +1,9 @@ +/* (C)2023 */ package com.cas.challengeservice.config; +import static com.cas.challengeservice.constant.Constants.MQ_REQUEST_ADD_BADGE; + +import com.cas.challengeservice.constant.Constants.*; import com.cas.challengeservice.dto.BadgeAddRequest; import com.cas.challengeservice.dto.MessageDto; import com.cas.challengeservice.service.BadgeService; @@ -9,9 +13,6 @@ import org.springframework.amqp.core.MessageListener; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import com.cas.challengeservice.constant.Constants.*; - -import static com.cas.challengeservice.constant.Constants.MQ_REQUEST_ADD_BADGE; @Component @Log4j2 diff --git a/challenge-service/src/main/java/com/cas/challengeservice/config/RabbitMQConfig.java b/challenge-service/src/main/java/com/cas/challengeservice/config/RabbitMQConfig.java index 407c493..f238aba 100644 --- a/challenge-service/src/main/java/com/cas/challengeservice/config/RabbitMQConfig.java +++ b/challenge-service/src/main/java/com/cas/challengeservice/config/RabbitMQConfig.java @@ -35,8 +35,7 @@ public class RabbitMQConfig { @Value("${spring.rabbitmq.queue}") private String queueName; - @Autowired - private BadgeListener badgeListener; + @Autowired private BadgeListener badgeListener; @Bean public ConnectionFactory connectionFactory() { diff --git a/challenge-service/src/main/java/com/cas/challengeservice/constant/Constants.java b/challenge-service/src/main/java/com/cas/challengeservice/constant/Constants.java index 8dd7b52..3cf78c6 100644 --- a/challenge-service/src/main/java/com/cas/challengeservice/constant/Constants.java +++ b/challenge-service/src/main/java/com/cas/challengeservice/constant/Constants.java @@ -1,6 +1,6 @@ +/* (C)2023 */ package com.cas.challengeservice.constant; public class Constants { public static final String MQ_REQUEST_ADD_BADGE = "ADD_BADGE"; - }