We have deprecation warnings, migrate them. While we are at it, also
suppress a static warning on deactivate().
Change-Id: If10e271fecc6aebbc3230b561d48527ce2f68d28
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
@Deactivate
+ @SuppressWarnings("static-method")
void deactivate() {
LOG.info("AAAEncryptionService deactivated");
}
this.dataBroker = requireNonNull(dataBroker);
this.factory = requireNonNull(factory);
reg = dataBroker.registerDataListener(
- DataTreeIdentifier.create(LogicalDatastoreType.CONFIGURATION,
+ DataTreeIdentifier.of(LogicalDatastoreType.CONFIGURATION,
InstanceIdentifier.create(AaaEncryptServiceConfig.class)),
this);
LOG.debug("AAA Encryption Service configurator started");
configurator = new OSGiEncryptionServiceConfigurator(dataBroker, factory);
- assertEquals(DataTreeIdentifier.create(LogicalDatastoreType.CONFIGURATION, IID), treeIdCaptor.getValue());
+ assertEquals(DataTreeIdentifier.of(LogicalDatastoreType.CONFIGURATION, IID), treeIdCaptor.getValue());
assertSame(configurator, listenerCaptor.getValue());
}