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 });
|
if (nic.getPort() != null) portOwners.put(nic.getPort(), new int[] { nodeIndex, index });
|
||||||
}
|
}
|
||||||
} else if (node instanceof LokalerKnoten local) {
|
} else if (node instanceof LokalerKnoten local) {
|
||||||
List<Port> anschluesse = local.getAnschluesse();
|
List<Port> attachedPorts = local.getAnschluesse();
|
||||||
for (int index = 0; index < anschluesse.size(); index++) {
|
for (int index = 0; index < attachedPorts.size(); index++) {
|
||||||
ports.add(Map.of());
|
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);
|
json.put("ports", ports);
|
||||||
@@ -147,9 +147,9 @@ public class FlsOracle {
|
|||||||
Kabel cable = item.getDasKabel();
|
Kabel cable = item.getDasKabel();
|
||||||
Map<String, Object> json = new LinkedHashMap<>();
|
Map<String, Object> json = new LinkedHashMap<>();
|
||||||
List<Object> ends = new ArrayList<>();
|
List<Object> ends = new ArrayList<>();
|
||||||
Port[] anschluesse = cable == null ? null : cable.getAnschluesse();
|
Port[] cablePorts = cable == null ? null : cable.getAnschluesse();
|
||||||
if (anschluesse != null) {
|
if (cablePorts != null) {
|
||||||
for (Port port : anschluesse) {
|
for (Port port : cablePorts) {
|
||||||
int[] owner = port == null ? null : portOwners.get(port);
|
int[] owner = port == null ? null : portOwners.get(port);
|
||||||
ends.add(owner == null ? null : List.of(owner[0], owner[1]));
|
ends.add(owner == null ? null : List.of(owner[0], owner[1]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user