()
| 24 | private Timestamp updateTime; |
| 25 | |
| 26 | @Override |
| 27 | public String toString() { |
| 28 | ToStringBuilder builder = new ToStringBuilder(this); |
| 29 | Field[] fields = this.getClass().getDeclaredFields(); |
| 30 | try { |
| 31 | for (Field f : fields) { |
| 32 | f.setAccessible(true); |
| 33 | builder.append(f.getName(), f.get(this)).append("\n"); |
| 34 | } |
| 35 | } catch (Exception e) { |
| 36 | builder.append("toString builder encounter an error"); |
| 37 | } |
| 38 | return builder.toString(); |
| 39 | } |
| 40 | } |
no test coverage detected