Some more code refactoring

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
This commit is contained in:
gael@lhopital.org 2025-01-02 18:11:39 +01:00 committed by clinique
parent da807f9633
commit e32eda1c08

View File

@ -92,7 +92,7 @@ public class StatusFileInterpreter {
private void pushDatas() { private void pushDatas() {
getRoot().ifPresent(root -> { getRoot().ifPresent(root -> {
PortDefinition.AS_STREAM.forEach(portDefinition -> { PortDefinition.AS_SET.forEach(portDefinition -> {
List<Node> xmlNodes = getMatchingNodes(root.getChildNodes(), portDefinition.nodeName); List<Node> xmlNodes = getMatchingNodes(root.getChildNodes(), portDefinition.nodeName);
xmlNodes.forEach(xmlNode -> { xmlNodes.forEach(xmlNode -> {
String sPortNum = xmlNode.getNodeName().replace(portDefinition.nodeName, ""); String sPortNum = xmlNode.getNodeName().replace(portDefinition.nodeName, "");