Fix OVERRIDE_DEPRECATION warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-08-30 12:31:11 +03:00
parent 69c3831865
commit d46e2dd749
34 changed files with 70 additions and 33 deletions
@@ -23,7 +23,7 @@ class CompileServiceClientRMIWrapper(
private fun reportNotImplemented(): Nothing = throw IllegalStateException("Unexpected call to deprecated method")
// deprecated methods :
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
@Suppress("OverridingDeprecatedMember", "DEPRECATION", "OVERRIDE_DEPRECATION")
override fun remoteCompile(
sessionId: Int,
targetPlatform: CompileService.TargetPlatform,
@@ -37,7 +37,7 @@ class CompileServiceClientRMIWrapper(
reportNotImplemented()
}
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
@Suppress("OverridingDeprecatedMember", "DEPRECATION", "OVERRIDE_DEPRECATION")
override fun remoteIncrementalCompile(
sessionId: Int,
targetPlatform: CompileService.TargetPlatform,
@@ -51,7 +51,7 @@ class CompileServiceClientRMIWrapper(
reportNotImplemented()
}
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
@Suppress("OverridingDeprecatedMember", "DEPRECATION", "OVERRIDE_DEPRECATION")
override fun leaseReplSession(
aliveFlagPath: String?,
targetPlatform: CompileService.TargetPlatform,
@@ -69,12 +69,12 @@ class CompileServiceClientRMIWrapper(
reportNotImplemented()
}
@Suppress("OverridingDeprecatedMember")
@Suppress("OverridingDeprecatedMember", "OVERRIDE_DEPRECATION")
override fun remoteReplLineCheck(sessionId: Int, codeLine: ReplCodeLine): CompileService.CallResult<ReplCheckResult> {
reportNotImplemented()
}
@Suppress("OverridingDeprecatedMember")
@Suppress("OverridingDeprecatedMember", "OVERRIDE_DEPRECATION")
override fun remoteReplLineCompile(
sessionId: Int,
codeLine: ReplCodeLine,
@@ -83,7 +83,7 @@ class CompileServiceClientRMIWrapper(
reportNotImplemented()
}
@Suppress("OverridingDeprecatedMember")
@Suppress("OverridingDeprecatedMember", "OVERRIDE_DEPRECATION")
override fun remoteReplLineEval(
sessionId: Int,
codeLine: ReplCodeLine,
@@ -208,4 +208,4 @@ class CompileServiceClientRMIWrapper(
fun CompileServiceAsync.toRMI() = when (this) {
is CompileServiceAsyncWrapper -> this.rmiCompileService
else -> CompileServiceClientRMIWrapper(this)
}
}