From f57871f020e6bc176ab47c071e6632cd641e9e61 Mon Sep 17 00:00:00 2001 From: LamGC Date: Fri, 9 Oct 2020 00:46:27 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20CacheStore-API=20=E4=BF=AE=E5=A4=8D=20F?= =?UTF-8?q?actoryPriority=20=E5=8F=AF=E4=BB=A5=E8=A2=AB=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Fix] FactoryPriority 添加私有构造方法以阻止实例化; --- .../main/java/net/lamgc/cgj/bot/cache/FactoryPriority.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/FactoryPriority.java b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/FactoryPriority.java index 62e049f..c7c9e48 100644 --- a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/FactoryPriority.java +++ b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/FactoryPriority.java @@ -52,5 +52,10 @@ public final class FactoryPriority { *

优先级数值: 0 */ public final static int PRIORITY_LOWEST = 0; - + + /** + * 该类不允许实例化. + */ + private FactoryPriority() {} + }