Skip to content

Commit 28dc2d2

Browse files
committed
clean code
1 parent 999f53c commit 28dc2d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gridsuite/network/map/dto/definition/extension/BusbarSectionFinderTraverser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private BusbarSectionFinderTraverser() {
2323

2424
private record NodePath(int startNode, List<SwitchInfo> traversedSwitches, SwitchInfo lastSwitch) { }
2525

26-
public record SwitchInfo(String id, SwitchKind kind, boolean isOpen) { }
26+
public record SwitchInfo(String id, boolean isOpen) { }
2727

2828
public record BusbarSectionResult(String busbarSectionId, int depth, SwitchInfo lastSwitch, int busbarIndex, int sectionIndex) { }
2929

@@ -136,7 +136,7 @@ private static Optional<Integer> getNextNodeIfAdjacent(int currentNode, int node
136136

137137
private static NodePath createNodePath(NodePath currentNodePath, Switch sw, int nextNode) {
138138
List<SwitchInfo> newPathSwitches = new ArrayList<>(currentNodePath.traversedSwitches());
139-
SwitchInfo switchInfo = new SwitchInfo(sw.getId(), sw.getKind(), sw.isOpen());
139+
SwitchInfo switchInfo = new SwitchInfo(sw.getId(), sw.isOpen());
140140
newPathSwitches.add(switchInfo);
141141
return new NodePath(nextNode, newPathSwitches, switchInfo);
142142
}

0 commit comments

Comments
 (0)