refactor: make property private

This commit is contained in:
Gauthier Roebroeck 2022-11-10 17:41:30 +08:00
parent d449ef1a43
commit 9c0905ef91

View file

@ -24,7 +24,7 @@ class BCP47Validator : ConstraintValidator<BCP47, String> {
}
object BCP47TagValidator {
val languages by lazy { ULocale.getISOLanguages().toSet() }
private val languages by lazy { ULocale.getISOLanguages().toSet() }
fun isValid(value: String): Boolean {
return ULocale.forLanguageTag(value).let {