diff --git a/.gitignore b/.gitignore index c9a900d..7dac644 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,6 @@ logs .env __debug* target -gateway.iml -gateway.ipr -gateway.iws \ No newline at end of file +exception.iml +exception.ipr +exception.iws \ No newline at end of file diff --git a/pom.xml b/pom.xml index 6c71367..05f9c40 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.projectlombok lombok - 1.18.24 + 1.18.30 junit diff --git a/src/main/java/cn/zhangdeman/HashMapCache.java b/src/main/java/cn/zhangdeman/HashMapCache.java index 3483636..ce6ca93 100644 --- a/src/main/java/cn/zhangdeman/HashMapCache.java +++ b/src/main/java/cn/zhangdeman/HashMapCache.java @@ -75,6 +75,7 @@ public class HashMapCache { return classList; } File[] fileList = directory.listFiles(); + assert fileList != null; for (File file : fileList) { String fileName = file.getName(); if (!fileName.endsWith(".class")) { diff --git a/src/main/java/cn/zhangdeman/ICustomExceptionAnnotation.java b/src/main/java/cn/zhangdeman/ICustomExceptionAnnotation.java index da66e0f..e2c8a45 100644 --- a/src/main/java/cn/zhangdeman/ICustomExceptionAnnotation.java +++ b/src/main/java/cn/zhangdeman/ICustomExceptionAnnotation.java @@ -5,5 +5,5 @@ import java.util.Map; // 为了支持注解扫描, 自定义exception必须实现此注解 public interface ICustomExceptionAnnotation { // 获取错误码列表: code => message - public Map getCodeTable(); + Map getCodeTable(); }