Commit c6657296 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove unnecessary suppress unchecked warnings annotations

parent cdb794e7
......@@ -215,7 +215,6 @@ class MappingConfig(directory: String) {
}
}
@Suppress("UNCHECKED_CAST")
private fun buildSimpleMappers(value: Any?): IFieldMapper {
return when (val field = parseField(value as Map.Entry<String, Any>)) {
is SimpleField -> SimpleFieldMapper(field)
......@@ -227,7 +226,6 @@ class MappingConfig(directory: String) {
}
}
@Suppress("UNCHECKED_CAST")
private fun buildIdentifierMapper(value: Any?): List<IFieldMapper> {
return when (value) {
is Map<*, *> -> {
......@@ -242,7 +240,6 @@ class MappingConfig(directory: String) {
}
}
@Suppress("UNCHECKED_CAST")
private fun buildAgentMapper(key: String, value: Any?): List<IFieldMapper> {
when (value) {
is Map<*, *> -> {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment