Remove jackson-module-kotlin warning

Closes gh-26962
This commit is contained in:
Sébastien Deleuze
2021-06-08 11:27:31 +02:00
parent 05eca05671
commit 6251222a23
2 changed files with 6 additions and 12 deletions

View File

@@ -105,8 +105,6 @@ import org.springframework.util.xml.StaxUtils;
*/
public class Jackson2ObjectMapperBuilder {
private static volatile boolean kotlinWarningLogged;
private final Log logger = HttpLogging.forLogName(getClass());
private final Map<Class<?>, Class<?>> mixIns = new LinkedHashMap<>();
@@ -863,11 +861,7 @@ public class Jackson2ObjectMapperBuilder {
modulesToRegister.set(kotlinModule.getTypeId(), kotlinModule);
}
catch (ClassNotFoundException ex) {
if (!kotlinWarningLogged) {
kotlinWarningLogged = true;
logger.warn("For Jackson Kotlin classes support please add " +
"\"com.fasterxml.jackson.module:jackson-module-kotlin\" to the classpath");
}
// jackson-module-kotlin not available
}
}
}