Kaynağa Gözat

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

4.1.3.A
LeO_wqHyw 5 yıl önce
committed by Gitee
ebeveyn
işleme
1c6ce34fd0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet