From 3d6f322da581ea27e66e2bf2188305591f4d2a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 3 Jun 2025 14:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8A=A5=E9=94=99:=20Class?= =?UTF-8?q?=20com.sun.tools.javac.tree.JCTree$JCImport=20does=20not=20have?= =?UTF-8?q?=20member=20field=20=E2=80=98com.sun.tools.javac.tre=20->=20htt?= =?UTF-8?q?ps://blog.csdn.net/Lyon=5Fyong/article/details/136975218?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 6 +++--- pom.xml | 2 +- src/main/java/cn/zhangdeman/HashMapCache.java | 1 + src/main/java/cn/zhangdeman/ICustomExceptionAnnotation.java | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) 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(); }