Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Heine <[email protected]>
  • Loading branch information
TruongQuangSB and mariusheine authored Dec 9, 2024
1 parent 45a8cd8 commit 3a26de5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class BankValues extends AbstractPlazContainerCheck implements PlazCheck, EventH
if (IDUeberhoehungA?.value === null ||
IDUeberhoehungB?.value === null) {
return createError(
"Die Überhöhungslinie {GUID} fehlt Ueberhoehung_A oder Ueberhoehung_B.",
"Die Überhöhungslinie {GUID} hat entweder keine Ueberhoehung_A oder keine Ueberhoehung_B.",
Map.of("GUID", it.identitaet.wert))
}
val begin = new TopPoint(IDUeberhoehungA.value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ private static List<DirectedTOPEdge<Edge>> findRelevantEdgesFromTarget(
return remainingWeight;
});

// When exist another Edge, which shorter als founded Edge, then
// replace the weight
// When another edge exists, which is shorter than found edge, replace the weight
remainingWeigthFromEnd.computeIfPresent(edgeSource,
(k, v) -> remainingWeight.compareTo(v) > 0
? remainingWeight
Expand Down

0 comments on commit 3a26de5

Please sign in to comment.