Унификация предупреждений о json свойствах

This commit is contained in:
DBotThePony 2023-01-01 18:13:19 +07:00
parent bc4d62e2f0
commit 0f6cb63a10
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 5 additions and 5 deletions

View File

@ -139,7 +139,7 @@ class BuilderAdapter<T : Any> private constructor(
}
if (!loggedMisses.contains(name)) {
LOGGER.warn("{} has no property for storing {}", instance::class.qualifiedName, name)
LOGGER.warn("${instance::class.qualifiedName} has no property for storing $name")
loggedMisses.add(name)
}

View File

@ -199,9 +199,9 @@ class FactoryAdapter<T : Any> private constructor(
if (!storesJson && loggedMisses.add(name)) {
if (currentSymbolicName == null) {
LOGGER.warn("Skipping JSON field with name $name because ${bound.simpleName} has no such field")
LOGGER.warn("${bound.qualifiedName} has no property for storing $name")
} else {
LOGGER.warn("Skipping JSON field with name $name because ${bound.simpleName} has no such field (reading: $currentSymbolicName)")
LOGGER.warn("${bound.qualifiedName} has no property for storing $name (reading: $currentSymbolicName)")
}
}
@ -245,9 +245,9 @@ class FactoryAdapter<T : Any> private constructor(
if (fieldId == -1) {
if (!storesJson && loggedMisses.add(name)) {
if (currentSymbolicName == null) {
LOGGER.warn("Skipping JSON field with name $name because ${bound.simpleName} has no such field")
LOGGER.warn("${bound.qualifiedName} has no property for storing $name ")
} else {
LOGGER.warn("Skipping JSON field with name $name because ${bound.simpleName} has no such field (reading: $currentSymbolicName)")
LOGGER.warn("${bound.qualifiedName} has no property for storing $name (reading: $currentSymbolicName)")
}
}