From 5341279d1f14dead5611c64fb9206916e5a21d56 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 28 Jun 2023 20:03:19 +0200 Subject: [PATCH] Add empty construcor to Paths --- .../src/main/kotlin/org/pgpainless/wot/dijkstra/sq/Paths.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/Paths.kt b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/Paths.kt index 35e9fc41..5020c061 100644 --- a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/Paths.kt +++ b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/Paths.kt @@ -6,6 +6,9 @@ package org.pgpainless.wot.dijkstra.sq class Paths(val paths: MutableList) { + constructor(): + this(mutableListOf()) + fun add(path: Path, amount: Int) { require(amount <= path.amount) { "Amount too small. TODO: Better error message"