fix: 移除kotlin实验性API注解
This commit is contained in:
@@ -42,7 +42,6 @@ data class MailProperties @ConstructorBinding constructor(
|
|||||||
)
|
)
|
||||||
|
|
||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
@ConfigurationPropertiesScan
|
@ConfigurationPropertiesScan
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
||||||
@@ -68,7 +67,6 @@ class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@ExperimentalStdlibApi
|
|
||||||
class Configuration {
|
class Configuration {
|
||||||
private val logger = LoggerFactory.getLogger(javaClass)
|
private val logger = LoggerFactory.getLogger(javaClass)
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import org.springframework.scheduling.annotation.Scheduled
|
|||||||
import org.springframework.stereotype.Service
|
import org.springframework.stereotype.Service
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ExperimentalStdlibApi
|
|
||||||
class NewsRunner : Runner {
|
class NewsRunner : Runner {
|
||||||
private val logger = LoggerFactory.getLogger(javaClass)
|
private val logger = LoggerFactory.getLogger(javaClass)
|
||||||
private val retryPolicy = RetryPolicy
|
private val retryPolicy = RetryPolicy
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ class Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ExperimentalStdlibApi
|
|
||||||
fun testParse() {
|
fun testParse() {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
JvmManagement().use { management ->
|
JvmManagement().use { management ->
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import org.springframework.boot.test.context.SpringBootTest
|
|||||||
classes = [Application::class],
|
classes = [Application::class],
|
||||||
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
|
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
|
||||||
)
|
)
|
||||||
@ExperimentalStdlibApi
|
|
||||||
class TestManagement {
|
class TestManagement {
|
||||||
private val logger = LoggerFactory.getLogger(javaClass)
|
private val logger = LoggerFactory.getLogger(javaClass)
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,22 @@
|
|||||||
package com.lanyuanxiaoyao.digtal.market
|
package com.lanyuanxiaoyao.digtal.market
|
||||||
|
|
||||||
import cn.hutool.json.JSONUtil
|
import cn.hutool.json.JSONUtil
|
||||||
import com.lanyuanxiaoyao.squirrel.core.common.*
|
import com.lanyuanxiaoyao.squirrel.core.common.Content
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.InMemoryDatabase
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Management
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Parser
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Process
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Rule
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Script
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Selector
|
||||||
|
import com.lanyuanxiaoyao.squirrel.core.common.Site
|
||||||
import com.lanyuanxiaoyao.squirrel.core.jvm.BINARY_PATH
|
import com.lanyuanxiaoyao.squirrel.core.jvm.BINARY_PATH
|
||||||
import com.lanyuanxiaoyao.squirrel.core.jvm.DRIVER_PATH
|
import com.lanyuanxiaoyao.squirrel.core.jvm.DRIVER_PATH
|
||||||
import com.lanyuanxiaoyao.squirrel.core.jvm.JvmManagement
|
import com.lanyuanxiaoyao.squirrel.core.jvm.JvmManagement
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
import kotlin.test.BeforeTest
|
import kotlin.test.BeforeTest
|
||||||
import kotlin.test.Test
|
import kotlin.test.Test
|
||||||
|
import kotlinx.coroutines.runBlocking
|
||||||
|
|
||||||
@ExperimentalStdlibApi
|
|
||||||
class TestRule {
|
class TestRule {
|
||||||
private lateinit var management: Management
|
private lateinit var management: Management
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user