浏览代码

修改反射工具类中从方法缓存取poi实体类setter时没有setter却提示成没有getter的错误

4.1.3.A
LeO_wqHyw 5 年前
committed by Gitee
父节点
当前提交
1c6ce34fd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiReflectorUtil.java

+ 1
- 1
easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiReflectorUtil.java 查看文件

@@ -309,7 +309,7 @@ public final class PoiReflectorUtil {
Method method = setMethods.get(propertyName);
if (method == null) {
throw new RuntimeException(
"There is no getter for property named '" + propertyName + "' in '" + type + "'");
"There is no setter for property named '" + propertyName + "' in '" + type + "'");
}
return method;
}


正在加载...
取消
保存