diff --git a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo.kt b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo.kt index 4aa53126..013bb969 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo.kt @@ -7,7 +7,6 @@ class Nodeinfo { protected constructor() } - class Links { var rel: String? = null var href: String? = null diff --git a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/user/User.kt b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/user/User.kt index 9666df3e..208f5b9d 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/user/User.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/user/User.kt @@ -31,6 +31,7 @@ data class User private constructor( class UserBuilder(private val characterLimit: CharacterLimit, private val applicationConfig: ApplicationConfig) { private val logger = LoggerFactory.getLogger(UserBuilder::class.java) + @Suppress("LongParameterList", "FunctionMinLength", "LongMethod") fun of( id: Long, diff --git a/src/main/kotlin/dev/usbharu/hideout/core/service/instance/InstanceService.kt b/src/main/kotlin/dev/usbharu/hideout/core/service/instance/InstanceService.kt index 2f6d8ef9..380083f2 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/service/instance/InstanceService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/service/instance/InstanceService.kt @@ -19,7 +19,6 @@ interface InstanceService { suspend fun createNewInstance(instanceCreateDto: InstanceCreateDto): Instance } - @Service class InstanceServiceImpl( private val instanceRepository: InstanceRepository, @@ -42,7 +41,6 @@ class InstanceServiceImpl( val nodeinfo = objectMapper.readValue(nodeinfoJson, Nodeinfo::class.java) val nodeinfoPathMap = nodeinfo.links.associate { it.rel to it.href } - for ((key, value) in nodeinfoPathMap) { when (key) { "http://nodeinfo.diaspora.software/ns/schema/2.0" -> {