diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Delete.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Delete.kt index f812b32a..61ffb348 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Delete.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Delete.kt @@ -59,6 +59,4 @@ open class Delete : Object, HasId, HasActor { ")" + " ${super.toString()}" } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Emoji.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Emoji.kt index 02fd2308..2b9a0bee 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Emoji.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Emoji.kt @@ -14,7 +14,6 @@ open class Emoji( HasName, HasId { - override fun toString(): String { return "Emoji(" + "name='$name', " + @@ -48,6 +47,4 @@ open class Emoji( result = 31 * result + icon.hashCode() return result } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Follow.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Follow.kt index 536d38b2..8a0382a9 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Follow.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Follow.kt @@ -39,6 +39,4 @@ open class Follow( ")" + " ${super.toString()}" } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Undo.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Undo.kt index 6ec8e44e..178373fd 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Undo.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/domain/model/Undo.kt @@ -47,6 +47,4 @@ open class Undo( ")" + " ${super.toString()}" } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APResourceResolveServiceImpl.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APResourceResolveServiceImpl.kt index b82d9df3..246b02d8 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APResourceResolveServiceImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/service/common/APResourceResolveServiceImpl.kt @@ -86,7 +86,5 @@ class APResourceResolveServiceImpl( override fun hashCode(): Int { return objects.hashCode() } - - } } diff --git a/src/main/kotlin/dev/usbharu/hideout/application/service/id/SnowflakeIdGenerateService.kt b/src/main/kotlin/dev/usbharu/hideout/application/service/id/SnowflakeIdGenerateService.kt index c9174a22..54288173 100644 --- a/src/main/kotlin/dev/usbharu/hideout/application/service/id/SnowflakeIdGenerateService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/application/service/id/SnowflakeIdGenerateService.kt @@ -64,6 +64,4 @@ open class SnowflakeIdGenerateService(private val baseTime: Long) : IdGenerateSe result = 31 * result + mutex.hashCode() return result } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/actor/Actor.kt b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/actor/Actor.kt index 31dc4c6a..6689e542 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/actor/Actor.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/actor/Actor.kt @@ -181,7 +181,7 @@ data class Actor private constructor( fun decrementPostsCount(): Actor = this.copy(postsCount = this.postsCount - 1) fun withLastPostAt(lastPostDate: Instant): Actor = this.copy(lastPostDate = lastPostDate) - + override fun toString(): String { return "Actor(" + "id=$id, " + @@ -206,6 +206,4 @@ data class Actor private constructor( "lastPostDate=$lastPostDate" + ")" } - - } 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 d22a3913..e2e44267 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 @@ -15,8 +15,6 @@ class Nodeinfo private constructor() { override fun hashCode(): Int { return links.hashCode() } - - } class Links private constructor() { @@ -39,6 +37,4 @@ class Links private constructor() { result = 31 * result + (href?.hashCode() ?: 0) return result } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo2_0.kt b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo2_0.kt index 403ab9d7..f3f5f72e 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo2_0.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/domain/model/instance/Nodeinfo2_0.kt @@ -23,8 +23,6 @@ class Nodeinfo2_0 { result = 31 * result + (software?.hashCode() ?: 0) return result } - - } class Metadata { @@ -47,8 +45,6 @@ class Metadata { result = 31 * result + (nodeDescription?.hashCode() ?: 0) return result } - - } class Software { @@ -72,5 +68,4 @@ class Software { result = 31 * result + (version?.hashCode() ?: 0) return result } - } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureUser.kt b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureUser.kt index 1b2a33a8..2d546af0 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureUser.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureUser.kt @@ -51,6 +51,4 @@ class HttpSignatureUser( @Serial private const val serialVersionUID: Long = -3330552099960982997L } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureVerifierComposite.kt b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureVerifierComposite.kt index a8089384..4496e0b5 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureVerifierComposite.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/httpsignature/HttpSignatureVerifierComposite.kt @@ -37,6 +37,4 @@ class HttpSignatureVerifierComposite( result = 31 * result + httpSignatureHeaderParser.hashCode() return result } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsImpl.kt b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsImpl.kt index c5639e65..cb06f2ce 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/springframework/oauth2/UserDetailsImpl.kt @@ -53,8 +53,6 @@ class UserDetailsImpl( result = 31 * result + id.hashCode() return result } - - } @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY) diff --git a/src/main/kotlin/dev/usbharu/hideout/core/service/resource/KtorResolveResponse.kt b/src/main/kotlin/dev/usbharu/hideout/core/service/resource/KtorResolveResponse.kt index d4f20045..66b8ba85 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/service/resource/KtorResolveResponse.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/service/resource/KtorResolveResponse.kt @@ -47,6 +47,4 @@ class KtorResolveResponse(val ktorHttpResponse: HttpResponse) : ResolveResponse result = 31 * result + _bodyAsBytes.contentHashCode() return result } - - } diff --git a/src/main/kotlin/dev/usbharu/hideout/mastodon/interfaces/api/status/StatusesRequest.kt b/src/main/kotlin/dev/usbharu/hideout/mastodon/interfaces/api/status/StatusesRequest.kt index a8cb0ec9..0a9fac65 100644 --- a/src/main/kotlin/dev/usbharu/hideout/mastodon/interfaces/api/status/StatusesRequest.kt +++ b/src/main/kotlin/dev/usbharu/hideout/mastodon/interfaces/api/status/StatusesRequest.kt @@ -78,7 +78,6 @@ class StatusesRequest { ")" } - @Suppress("EnumNaming", "EnumEntryNameCase") enum class Visibility { `public`, diff --git a/src/main/kotlin/dev/usbharu/hideout/util/LruCache.kt b/src/main/kotlin/dev/usbharu/hideout/util/LruCache.kt index e62469a0..77c891da 100644 --- a/src/main/kotlin/dev/usbharu/hideout/util/LruCache.kt +++ b/src/main/kotlin/dev/usbharu/hideout/util/LruCache.kt @@ -12,7 +12,6 @@ class LruCache(private val maxSize: Int) : LinkedHashMap(15, 0.75f, " ${super.toString()}" } - companion object { @Serial private const val serialVersionUID: Long = -6446947260925053191L diff --git a/src/main/kotlin/dev/usbharu/hideout/util/TempFileUtil.kt b/src/main/kotlin/dev/usbharu/hideout/util/TempFileUtil.kt index 6a8fbdcd..8a506767 100644 --- a/src/main/kotlin/dev/usbharu/hideout/util/TempFileUtil.kt +++ b/src/main/kotlin/dev/usbharu/hideout/util/TempFileUtil.kt @@ -22,6 +22,4 @@ class TempFile(val path: T) : AutoCloseable { override fun hashCode(): Int { return path?.hashCode() ?: 0 } - - }