Closed cstenkes closed 5 years ago
For example:
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theClientId; theClientId = this.getClientId(); strategy.appendField(locator, this, "clientId", buffer, theClientId, (this.clientId!= null)); } { String theItemNo; theItemNo = this.getItemNo(); strategy.appendField(locator, this, "itemNo", buffer, theItemNo, (this.itemNo!= null)); }
This should be looked like:
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { String theClientId = this.getClientId(); strategy.appendField(locator, this, "clientId", buffer, theClientId, (this.clientId!= null)); String theItemNo = this.getItemNo(); strategy.appendField(locator, this, "itemNo", buffer, theItemNo, (this.itemNo!= null));
I think the code is more readable with one block per field. I would like to leave them as is.
For example:
This should be looked like: