diff --git a/desktop/src/main/kotlin/com/koldyr/genealogy/GenealogyApp.kt b/desktop/src/main/kotlin/com/koldyr/genealogy/GenealogyApp.kt index 678c465..fa860c7 100644 --- a/desktop/src/main/kotlin/com/koldyr/genealogy/GenealogyApp.kt +++ b/desktop/src/main/kotlin/com/koldyr/genealogy/GenealogyApp.kt @@ -9,7 +9,6 @@ import java.awt.event.MouseEvent.* import java.io.File import java.io.IOException import java.util.* -import java.util.function.ToLongFunction import javax.swing.AbstractAction import javax.swing.JFileChooser import javax.swing.JFrame @@ -168,7 +167,7 @@ class GenealogyApp : JFrame, ActionListener { .stream() .map(Person::id) .filter(Objects::nonNull) - .mapToLong(ToLongFunction { it }) + .mapToLong { it!! } .max() .orElse(0) + 1 diff --git a/model/pom.xml b/model/pom.xml index 6f43904..6e8c925 100644 --- a/model/pom.xml +++ b/model/pom.xml @@ -17,7 +17,7 @@ jakarta.validation jakarta.validation-api - 3.0.2 + 3.1.0 diff --git a/pom.xml b/pom.xml index 3bd728f..9e229ba 100644 --- a/pom.xml +++ b/pom.xml @@ -15,12 +15,12 @@ UTF-8 21 21 - 1.9.22 + 2.0.0 - 3.2.5 - 6.1.6 - 6.2.4 - 2.17.0 + 3.3.0 + 6.1.8 + 6.3.0 + 2.17.1 4.1.0 2.3.0 @@ -171,11 +171,4 @@ - - - maven_central - Maven Central - https://repo.maven.apache.org/maven2/ - -