UpdateNotification contexts are always strings, use the appropriate
type.
Change-Id: I59cba1fbef199861c3792a65ad3fe07bf894c9c4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
OvsdbRPC.Callback temp = new OvsdbRPC.Callback() {
@Override
public void update(Object node, UpdateNotification updateNotification) {
- Object key = updateNotification.getContext();
+ String key = updateNotification.getContext();
CallbackContext callbackContext = monitorCallbacks.get(key);
MonitorCallBack monitorCallBack = callbackContext.monitorCallBack;
if (monitorCallBack == null) {
private static final Logger LOG = LoggerFactory.getLogger(UpdateNotification.class);
- private Object context;
+ private String context;
private DatabaseSchema databaseSchema;
private TableUpdates update;
private JsonNode updatesJson;
- public Object getContext() {
+ public String getContext() {
return context;
}
- public void setContext(Object context) {
+ public void setContext(String context) {
this.context = context;
}