Sho SHIMIZU
Committed by Gerrit Code Review

Add comments describing immutability/mutability

Change-Id: I2fc947b3785c6edf1ad20eb432dafc1642781ca7
......@@ -598,12 +598,13 @@ public class FlowRuleManager
}
private class FlowOperationsProcessor implements Runnable {
private final List<Set<FlowRuleOperation>> stages;
// Immutable
private final FlowRuleOperations fops;
private boolean hasFailed = false;
// Mutable
private final List<Set<FlowRuleOperation>> stages;
private final Set<DeviceId> pendingDevices = new HashSet<>();
private boolean hasFailed = false;
FlowOperationsProcessor(FlowRuleOperations ops) {
this.stages = Lists.newArrayList(ops.stages());
......