From a32eca0fd4085c99a061b1035dada9ec6caccecc Mon Sep 17 00:00:00 2001 From: oopooa <41882826+oopooa@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:51:49 +0800 Subject: [PATCH] [ISSUE #7932] Rectify the modifier order in namesrv --- .../main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java | 4 ++-- .../apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java b/namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java index 179d3bb0d63..23d09062165 100644 --- a/namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java +++ b/namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java @@ -43,8 +43,8 @@ public class NamesrvStartup { - private final static Logger log = LoggerFactory.getLogger(LoggerName.NAMESRV_LOGGER_NAME); - private final static Logger logConsole = LoggerFactory.getLogger(LoggerName.NAMESRV_CONSOLE_LOGGER_NAME); + private static final Logger log = LoggerFactory.getLogger(LoggerName.NAMESRV_LOGGER_NAME); + private static final Logger logConsole = LoggerFactory.getLogger(LoggerName.NAMESRV_CONSOLE_LOGGER_NAME); private static Properties properties = null; private static NamesrvConfig namesrvConfig = null; private static NettyServerConfig nettyServerConfig = null; diff --git a/namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java b/namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java index ce311d392aa..d1992833928 100644 --- a/namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java +++ b/namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java @@ -67,7 +67,7 @@ public class RouteInfoManager { private static final Logger log = LoggerFactory.getLogger(LoggerName.NAMESRV_LOGGER_NAME); - private final static long DEFAULT_BROKER_CHANNEL_EXPIRED_TIME = 1000 * 60 * 2; + private static final long DEFAULT_BROKER_CHANNEL_EXPIRED_TIME = 1000 * 60 * 2; private final ReadWriteLock lock = new ReentrantReadWriteLock(); private final Map> topicQueueTable; private final Map brokerAddrTable;