mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 13:34:22 +02:00
[various] Fix LocalVariableNameCheck (#18994)
* Fix LocalVariableNameCheck Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
+3
-3
@@ -825,9 +825,9 @@ public class OnvifConnection {
|
||||
logger.error("Error parsing ONVIF xml.", e);
|
||||
return;
|
||||
}
|
||||
NodeList NotificationMessageNodeList = xmlDocument.getElementsByTagName("wsnt:NotificationMessage");
|
||||
for (int i = 0; i < NotificationMessageNodeList.getLength(); i++) {
|
||||
Element notificationMessageElement = (Element) NotificationMessageNodeList.item(i);
|
||||
NodeList notificationMessages = xmlDocument.getElementsByTagName("wsnt:NotificationMessage");
|
||||
for (int i = 0; i < notificationMessages.getLength(); i++) {
|
||||
Element notificationMessageElement = (Element) notificationMessages.item(i);
|
||||
|
||||
Element topicElement = (Element) notificationMessageElement.getElementsByTagName("wsnt:Topic").item(0);
|
||||
String topic = topicElement.getFirstChild().getNodeValue().replace("tns1:", "");
|
||||
|
||||
Reference in New Issue
Block a user