给定一个简单的POJO确实会产生影响,或者使用以下任何一种方法可能会产生副作用:
total = getPriorAmount() + getCurrentAmount();
要么
total = this.priorAmount + this.currentAmount;
在POJO中使用时.
java
java ×1