Sfoglia il codice sorgente

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

4.1.3.A
LeO_wqHyw 5 anni fa
committed by Gitee
parent
commit
1c6ce34fd0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 Vedi File

@@ -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;
}


Caricamento…
Annulla
Salva