this.dataBroker = createDataBroker();
this.notificationService = createNotificationService();
this.notificationPublishService = createNotificationPublishService();
- for (ListenerRegistration<SchemaContextListener> listener : this.mockedSchemaContext.listeners) {
+ for (ListenerRegistration<? extends SchemaContextListener> listener :
+ this.mockedSchemaContext.listeners.getRegistrations()) {
listener.getInstance().onGlobalContextUpdated(this.mockedSchemaContext.schemaContext);
}
}
import javax.annotation.Nonnull;
import javax.xml.XMLConstants;
import javax.xml.parsers.FactoryConfigurationError;
-import javax.xml.parsers.ParserConfigurationException;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
try (NormalizedNodeStreamWriter streamWriter = ImmutableNormalizedNodeStreamWriter.from(result);
XmlParserStream xmlParser = XmlParserStream.create(streamWriter, getSchemaContext(), parentSchemaNode)) {
xmlParser.parse(reader);
- } catch (XMLStreamException | URISyntaxException | IOException | ParserConfigurationException
- | SAXException e) {
+ } catch (XMLStreamException | URISyntaxException | IOException | SAXException e) {
LOG.warn("An error {} occured during parsing XML input stream", e.getMessage(), e);
return Optional.empty();
}
for (int i = 0; i < listHops.size(); i++) {
HopType hoptype = listHops.get(i).getHopType().getHopType();
- String hopt = hoptype.getImplementedInterface().getSimpleName();
+ String hopt = hoptype.implementedInterface().getSimpleName();
LOG.info("in readIncludeNodes next hop to include {}", hopt);
switch (hopt) {
case "Node":
String sortId = "";
while (iterator.hasNext()) {
ZToA pathDesObj = iterator.next();
- resourceType = pathDesObj.getResource().getResource().getImplementedInterface().getSimpleName();
+ resourceType = pathDesObj.getResource().getResource().implementedInterface().getSimpleName();
LOG.info("Inside ZtoA {}", resourceType);
try {
while (iterator.hasNext()) {
AToZ pathDesObj = iterator.next();
- resourceType = pathDesObj.getResource().getResource().getImplementedInterface().getSimpleName();
+ resourceType = pathDesObj.getResource().getResource().implementedInterface().getSimpleName();
LOG.info("Inside AtoZ {}", resourceType);
try {
if (TERMINATION_POINT.equals(resourceType)) {