aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/rest
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-03-11 16:18:17 +0100
committerRobert Jaros <rjaros@finn.pl>2020-03-11 16:18:17 +0100
commit9e243a469ae6544e8cf523ad09b959f541c3f565 (patch)
treebe9c7447e221af49180c9e98434df7f988b940b8 /src/main/kotlin/pl/treksoft/kvision/rest
parentec6084c42c13a621e17b17bd40d90b5c7879f0ec (diff)
downloadkvision-9e243a469ae6544e8cf523ad09b959f541c3f565.tar.gz
kvision-9e243a469ae6544e8cf523ad09b959f541c3f565.tar.bz2
kvision-9e243a469ae6544e8cf523ad09b959f541c3f565.zip
Upgrade to Kotlin 1.3.70 + other dependencies (Coroutinse, Serialization, Spring Boot)
Major refactoring of build architecture.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/rest')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/rest/RestClient.kt20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/rest/RestClient.kt b/src/main/kotlin/pl/treksoft/kvision/rest/RestClient.kt
index b1ab97b6..9011c780 100644
--- a/src/main/kotlin/pl/treksoft/kvision/rest/RestClient.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/rest/RestClient.kt
@@ -180,7 +180,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any> call(
url: String,
data: dynamic = null,
@@ -201,7 +201,7 @@ open class RestClient {
* @param beforeSend a function to set request parameters
* @return a promise of the result
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified V : Any> call(
url: String,
data: V,
@@ -230,7 +230,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <T : Any, reified V : Any> call(
url: String,
data: V,
@@ -263,7 +263,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any, V : Any> call(
url: String,
serializer: SerializationStrategy<V>,
@@ -295,7 +295,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any, reified V : Any> call(
url: String,
data: V,
@@ -470,7 +470,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the response
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any> request(
url: String,
data: dynamic = null,
@@ -491,7 +491,7 @@ open class RestClient {
* @param beforeSend a function to set request parameters
* @return a promise of the response
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified V : Any> request(
url: String,
data: V,
@@ -520,7 +520,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the response
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <T : Any, reified V : Any> request(
url: String,
data: V,
@@ -553,7 +553,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the response
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any, V : Any> request(
url: String,
serializer: SerializationStrategy<V>,
@@ -585,7 +585,7 @@ open class RestClient {
* @param transform a function to transform the result of the call
* @return a promise of the response
*/
- @UseExperimental(ImplicitReflectionSerializer::class)
+ @OptIn(ImplicitReflectionSerializer::class)
inline fun <reified T : Any, reified V : Any> request(
url: String,
data: V,