diff --git a/hutool-core/src/main/java/cn/hutool/core/lang/page/NavigatePageInfo.java b/hutool-core/src/main/java/cn/hutool/core/lang/page/NavigatePageInfo.java
index 6edbd22a1..ae508b738 100644
--- a/hutool-core/src/main/java/cn/hutool/core/lang/page/NavigatePageInfo.java
+++ b/hutool-core/src/main/java/cn/hutool/core/lang/page/NavigatePageInfo.java
@@ -3,11 +3,11 @@ package cn.hutool.core.lang.page;
/**
* 导航分页信息类
* 根据提供的总页数、每页记录数、导航页码数等信息,生成导航数组。
- *
+ * {@code
* [1] 2 3 4 5 >>
* << 1 [2] 3 4 5 >>
* << 1 2 3 4 [5]
- *
+ * }
*
* @author 莫取网名
*/
diff --git a/hutool-core/src/main/java/cn/hutool/core/text/dfa/NFA.java b/hutool-core/src/main/java/cn/hutool/core/text/dfa/NFA.java
index 3d791679c..30a249569 100644
--- a/hutool-core/src/main/java/cn/hutool/core/text/dfa/NFA.java
+++ b/hutool-core/src/main/java/cn/hutool/core/text/dfa/NFA.java
@@ -10,180 +10,181 @@ import java.util.*;
* @author renyp
*/
public class NFA {
- /**
- * AC树的根节点
- */
- private final Node root;
- /**
- * 标记是否需要构建AC自动机,做树优化
- */
- private volatile boolean needBuildAc;
+ /**
+ * AC树的根节点
+ */
+ private final Node root;
+ /**
+ * 标记是否需要构建AC自动机,做树优化
+ */
+ private volatile boolean needBuildAc;
- /**
- * 内置锁,防止并发场景,并行建AC树,造成不可预知结果
- */
- private final Object buildAcLock;
+ /**
+ * 内置锁,防止并发场景,并行建AC树,造成不可预知结果
+ */
+ private final Object buildAcLock;
- /**
- * 内置锁,防止并行插入,新节点建立后,被挂载到树上前 被篡改
- */
- private final Object insertTreeLock;
+ /**
+ * 内置锁,防止并行插入,新节点建立后,被挂载到树上前 被篡改
+ */
+ private final Object insertTreeLock;
- /**
- * 默认构造
- */
- public NFA() {
- this.root = new Node();
- this.needBuildAc = true;
- this.buildAcLock = new Object();
- this.insertTreeLock = new Object();
- }
+ /**
+ * 默认构造
+ */
+ public NFA() {
+ this.root = new Node();
+ this.needBuildAc = true;
+ this.buildAcLock = new Object();
+ this.insertTreeLock = new Object();
+ }
- /**
- * 构造函数 并 初始化词库
- *
- * @param words 添加的新词
- */
- public NFA(String... words) {
- this();
- this.insert(words);
- }
+ /**
+ * 构造函数 并 初始化词库
+ *
+ * @param words 添加的新词
+ */
+ public NFA(final String... words) {
+ this();
+ this.insert(words);
+ }
- /**
- * 词库添加新词,初始化查找树
- *
- * @param word 添加的新词
- */
- public void insert(String word) {
- synchronized (insertTreeLock) {
- needBuildAc = true;
- Node p = root;
- for (char curr : word.toCharArray()) {
- int ind = curr;
- if (p.next.get(ind) == null) {
- p.next.put(ind, new Node());
- }
- p = p.next.get(ind);
- }
- p.flag = true;
- p.str = word;
- }
- }
+ /**
+ * 词库添加新词,初始化查找树
+ *
+ * @param word 添加的新词
+ */
+ public void insert(final String word) {
+ synchronized (insertTreeLock) {
+ needBuildAc = true;
+ Node p = root;
+ for (final char curr : word.toCharArray()) {
+ if (p.next.get((int) curr) == null) {
+ p.next.put((int) curr, new Node());
+ }
+ p = p.next.get((int) curr);
+ }
+ p.flag = true;
+ p.str = word;
+ }
+ }
- /**
- * 词库批量添加新词,初始化查找树
- *
- * @param words 添加的新词
- */
- public void insert(String... words) {
- for (String word : words) {
- this.insert(word);
- }
- }
+ /**
+ * 词库批量添加新词,初始化查找树
+ *
+ * @param words 添加的新词
+ */
+ public void insert(final String... words) {
+ for (final String word : words) {
+ this.insert(word);
+ }
+ }
- /**
- * 构建基于NFA模型的 AC自动机
- */
- private void buildAc() {
- Queue