From 4e7b233d099c13b8b22d7676790e26e8fff1c699 Mon Sep 17 00:00:00 2001 From: Fabian Engelniederhammer Date: Mon, 4 Dec 2023 15:18:52 +0100 Subject: [PATCH] refactor(backend): make some functions private --- .../org/pathoplexus/backend/service/SequenceValidator.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/kotlin/org/pathoplexus/backend/service/SequenceValidator.kt b/backend/src/main/kotlin/org/pathoplexus/backend/service/SequenceValidator.kt index 55d390f015..f631050a7c 100644 --- a/backend/src/main/kotlin/org/pathoplexus/backend/service/SequenceValidator.kt +++ b/backend/src/main/kotlin/org/pathoplexus/backend/service/SequenceValidator.kt @@ -133,7 +133,7 @@ class SequenceValidator( } } - fun validateType(fieldValue: JsonNode, metadata: Metadata) { + private fun validateType(fieldValue: JsonNode, metadata: Metadata) { if (fieldValue.isNull) { return } @@ -178,7 +178,7 @@ class SequenceValidator( } } - fun isValidDate(dateStringCandidate: String): Boolean { + private fun isValidDate(dateStringCandidate: String): Boolean { val formatter = DateTimeFormatter.ofPattern(DATE_FORMAT) return try { LocalDate.parse(dateStringCandidate, formatter) @@ -188,7 +188,7 @@ class SequenceValidator( } } - fun isValidPangoLineage(pangoLineageCandidate: String): Boolean { + private fun isValidPangoLineage(pangoLineageCandidate: String): Boolean { return pangoLineageCandidate.matches(pangoLineageRegex) }