Browse Source

:art: modifier order

Kyle Scully 3 years ago
parent
commit
44e4ee4416

+ 1 - 1
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/WxDnsResolver.java

@@ -18,7 +18,7 @@ import java.util.Map;
  */
 public class WxDnsResolver implements DnsResolver {
 
-  private final static String WECHAT_API_URL = "api.weixin.qq.com";
+  private static final String WECHAT_API_URL = "api.weixin.qq.com";
   private static Map<String, InetAddress[]> MAPPINGS = new HashMap<>();
   protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class);
   private String wxApiIp;

+ 4 - 4
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedissonConfigImpl.java

@@ -20,19 +20,19 @@ public class WxCpRedissonConfigImpl extends WxCpDefaultConfigImpl {
   /**
    * The constant LOCK_KEY.
    */
-  protected final static String LOCK_KEY = "wechat_cp_lock:";
+  protected static final String LOCK_KEY = "wechat_cp_lock:";
   /**
    * The constant CP_ACCESS_TOKEN_KEY.
    */
-  protected final static String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:";
+  protected static final String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:";
   /**
    * The constant CP_JSAPI_TICKET_KEY.
    */
-  protected final static String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:";
+  protected static final String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:";
   /**
    * The constant CP_AGENT_JSAPI_TICKET_KEY.
    */
-  protected final static String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:";
+  protected static final String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:";
   private final WxRedisOps redisOps;
   /**
    * redis 存储的 key 的前缀,可为空

+ 4 - 4
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedissonConfigImpl.java

@@ -18,10 +18,10 @@ import java.util.concurrent.locks.Lock;
  */
 public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl {
 
-  protected final static String LOCK_KEY = "wechat_ma_lock:";
-  protected final static String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
-  protected final static String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:";
-  protected final static String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:";
+  protected static final String LOCK_KEY = "wechat_ma_lock:";
+  protected static final String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
+  protected static final String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:";
+  protected static final String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:";
 
   /**
    * redis 存储的 key 的前缀,可为空

+ 1 - 1
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/WxMaConfigHolder.java

@@ -7,7 +7,7 @@ package cn.binarywang.wx.miniapp.util;
  * @date 2020-08-16
  */
 public class WxMaConfigHolder {
-  private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
+  private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
     @Override
     protected String initialValue() {
       return "default";

+ 1 - 1
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java

@@ -5,7 +5,7 @@ package me.chanjar.weixin.mp.util;
  * @date 2019-03-20 22:06
  */
 public class WxMpConfigStorageHolder {
-  private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
+  private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
     @Override
     protected String initialValue() {
       return "default";

+ 7 - 7
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/AbstractWxOpenInRedisConfigStorage.java

@@ -8,16 +8,16 @@ import org.apache.commons.lang3.StringUtils;
  * @date 2020/01/09
  **/
 public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage {
-  protected final static String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:";
-  protected final static String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:";
+  protected static final String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:";
+  protected static final String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:";
 
-  protected final static String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:";
-  protected final static String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:";
+  protected static final String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:";
+  protected static final String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:";
 
-  protected final static String LOCK_KEY = "wechat_lock:";
+  protected static final String LOCK_KEY = "wechat_lock:";
 
-  protected final static String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:";
-  protected final static String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
+  protected static final String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:";
+  protected static final String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
 
   /**
    * redis 存储的 key 的前缀,可为空

+ 1 - 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/BaseWxPayRequest.java

@@ -322,7 +322,7 @@ public abstract class BaseWxPayRequest implements Serializable {
    *
    * @param map 传入的属性Map
    */
-  abstract protected void storeMap(Map<String, String> map);
+  protected abstract void storeMap(Map<String, String> map);
 
   /**
    * <pre>

+ 1 - 1
weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/util/WxQidianConfigStorageHolder.java

@@ -5,7 +5,7 @@ package me.chanjar.weixin.qidian.util;
  * @date 2020年12月26日
  */
 public class WxQidianConfigStorageHolder {
-  private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
+  private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
     @Override
     protected String initialValue() {
       return "default";