Avoiding duplicate lookup of connector hierarchy when a component shall be marked dirty. Optimized if statement to fail fast. Change-Id: I3ac82d64b235ebfd1888a6076c595f351018d887tags/7.1.1
@@ -224,9 +224,9 @@ public abstract class AbstractClientConnector implements ClientConnector, | |||
} | |||
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; |