diff options
Diffstat (limited to 'kvision-modules/kvision-server-ktor/src/main')
2 files changed, 7 insertions, 10 deletions
diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt index d3fde5c7..276ee9a6 100644 --- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt +++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt @@ -128,7 +128,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -168,7 +168,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -217,7 +217,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -268,7 +268,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -320,7 +320,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -374,7 +374,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, @@ -478,7 +478,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: ) ) } catch (e: Exception) { - if (!(e is ServiceException)) LOG.error(e.message, e) + if (e !is ServiceException) LOG.error(e.message, e) call.respond( JsonRpcResponse( id = jsonRpcRequest.id, diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt index 09ba6d01..61f8ba58 100644 --- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt +++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt @@ -36,9 +36,6 @@ import java.time.OffsetTime import java.time.format.DateTimeFormatter import java.time.format.DateTimeParseException -@Deprecated("Not supported in KVision 2+. Use LocalDateTime or OffsetDateTime instead.", level = DeprecationLevel.ERROR) -actual typealias Date = LocalDateTime - actual typealias LocalDateTime = LocalDateTime actual typealias LocalDate = LocalDate |