refactor(java-oracle): English local names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -132,10 +132,10 @@ public class FlsOracle {
|
||||
if (nic.getPort() != null) portOwners.put(nic.getPort(), new int[] { nodeIndex, index });
|
||||
}
|
||||
} else if (node instanceof LokalerKnoten local) {
|
||||
List<Port> anschluesse = local.getAnschluesse();
|
||||
for (int index = 0; index < anschluesse.size(); index++) {
|
||||
List<Port> attachedPorts = local.getAnschluesse();
|
||||
for (int index = 0; index < attachedPorts.size(); index++) {
|
||||
ports.add(Map.of());
|
||||
portOwners.put(anschluesse.get(index), new int[] { nodeIndex, index });
|
||||
portOwners.put(attachedPorts.get(index), new int[] { nodeIndex, index });
|
||||
}
|
||||
}
|
||||
json.put("ports", ports);
|
||||
@@ -147,9 +147,9 @@ public class FlsOracle {
|
||||
Kabel cable = item.getDasKabel();
|
||||
Map<String, Object> json = new LinkedHashMap<>();
|
||||
List<Object> ends = new ArrayList<>();
|
||||
Port[] anschluesse = cable == null ? null : cable.getAnschluesse();
|
||||
if (anschluesse != null) {
|
||||
for (Port port : anschluesse) {
|
||||
Port[] cablePorts = cable == null ? null : cable.getAnschluesse();
|
||||
if (cablePorts != null) {
|
||||
for (Port port : cablePorts) {
|
||||
int[] owner = port == null ? null : portOwners.get(port);
|
||||
ends.add(owner == null ? null : List.of(owner[0], owner[1]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user