Avoiding duplicate lookup of connector hierarchy when a component shall be
marked dirty. Optimized if statement to fail fast.
Change-Id: I3ac82d64b235ebfd1888a6076c595f351018d887
}
if (markAsDirty) {
UI ui = getUI();
- if (ui != null && !ui.getConnectorTracker().isWritingResponse()
- && !ui.getConnectorTracker().isDirty(this)) {
- markAsDirty();
+ if (ui != null && !ui.getConnectorTracker().isDirty(this)
+ && !ui.getConnectorTracker().isWritingResponse()) {
+ ui.getConnectorTracker().markDirty(this);
}
}
return sharedState;