*/
package org.opendaylight.protocol.bgp.rib.impl;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import java.util.Map;
import java.util.Map.Entry;
private final BGPSessionListener listener;
public BGPSynchronization(final BGPSessionListener listener, final Set<TablesKey> types) {
- this.listener = Preconditions.checkNotNull(listener);
+ this.listener = requireNonNull(listener);
for (final TablesKey type : types) {
this.syncStorage.put(type, new SyncVariables());
isEOR = true;
}
}
+ syncType(type, isEOR);
+ }
+
+ private void syncType(final TablesKey type, final boolean isEOR) {
final SyncVariables s = this.syncStorage.get(type);
if (s == null) {
LOG.warn("BGPTableType was not present in open message : {}", type);