Унификация предупреждений о json свойствах
This commit is contained in:
parent
bc4d62e2f0
commit
0f6cb63a10
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user