[various] Fix LocalVariableNameCheck (#18994)

* Fix LocalVariableNameCheck

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel
2025-07-22 00:00:12 +02:00
committed by GitHub
parent 6592ccaa18
commit ce67b0145e
9 changed files with 56 additions and 58 deletions
@@ -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:", "");