style: fix lint

This commit is contained in:
usbharu 2023-12-14 16:44:15 +09:00
parent 11d82e7fbf
commit fdf3065953
16 changed files with 1 additions and 37 deletions

View File

@ -59,6 +59,4 @@ open class Delete : Object, HasId, HasActor {
")" + ")" +
" ${super.toString()}" " ${super.toString()}"
} }
} }

View File

@ -14,7 +14,6 @@ open class Emoji(
HasName, HasName,
HasId { HasId {
override fun toString(): String { override fun toString(): String {
return "Emoji(" + return "Emoji(" +
"name='$name', " + "name='$name', " +
@ -48,6 +47,4 @@ open class Emoji(
result = 31 * result + icon.hashCode() result = 31 * result + icon.hashCode()
return result return result
} }
} }

View File

@ -39,6 +39,4 @@ open class Follow(
")" + ")" +
" ${super.toString()}" " ${super.toString()}"
} }
} }

View File

@ -47,6 +47,4 @@ open class Undo(
")" + ")" +
" ${super.toString()}" " ${super.toString()}"
} }
} }

View File

@ -86,7 +86,5 @@ class APResourceResolveServiceImpl(
override fun hashCode(): Int { override fun hashCode(): Int {
return objects.hashCode() return objects.hashCode()
} }
} }
} }

View File

@ -64,6 +64,4 @@ open class SnowflakeIdGenerateService(private val baseTime: Long) : IdGenerateSe
result = 31 * result + mutex.hashCode() result = 31 * result + mutex.hashCode()
return result return result
} }
} }

View File

@ -181,7 +181,7 @@ data class Actor private constructor(
fun decrementPostsCount(): Actor = this.copy(postsCount = this.postsCount - 1) fun decrementPostsCount(): Actor = this.copy(postsCount = this.postsCount - 1)
fun withLastPostAt(lastPostDate: Instant): Actor = this.copy(lastPostDate = lastPostDate) fun withLastPostAt(lastPostDate: Instant): Actor = this.copy(lastPostDate = lastPostDate)
override fun toString(): String { override fun toString(): String {
return "Actor(" + return "Actor(" +
"id=$id, " + "id=$id, " +
@ -206,6 +206,4 @@ data class Actor private constructor(
"lastPostDate=$lastPostDate" + "lastPostDate=$lastPostDate" +
")" ")"
} }
} }

View File

@ -15,8 +15,6 @@ class Nodeinfo private constructor() {
override fun hashCode(): Int { override fun hashCode(): Int {
return links.hashCode() return links.hashCode()
} }
} }
class Links private constructor() { class Links private constructor() {
@ -39,6 +37,4 @@ class Links private constructor() {
result = 31 * result + (href?.hashCode() ?: 0) result = 31 * result + (href?.hashCode() ?: 0)
return result return result
} }
} }

View File

@ -23,8 +23,6 @@ class Nodeinfo2_0 {
result = 31 * result + (software?.hashCode() ?: 0) result = 31 * result + (software?.hashCode() ?: 0)
return result return result
} }
} }
class Metadata { class Metadata {
@ -47,8 +45,6 @@ class Metadata {
result = 31 * result + (nodeDescription?.hashCode() ?: 0) result = 31 * result + (nodeDescription?.hashCode() ?: 0)
return result return result
} }
} }
class Software { class Software {
@ -72,5 +68,4 @@ class Software {
result = 31 * result + (version?.hashCode() ?: 0) result = 31 * result + (version?.hashCode() ?: 0)
return result return result
} }
} }

View File

@ -51,6 +51,4 @@ class HttpSignatureUser(
@Serial @Serial
private const val serialVersionUID: Long = -3330552099960982997L private const val serialVersionUID: Long = -3330552099960982997L
} }
} }

View File

@ -37,6 +37,4 @@ class HttpSignatureVerifierComposite(
result = 31 * result + httpSignatureHeaderParser.hashCode() result = 31 * result + httpSignatureHeaderParser.hashCode()
return result return result
} }
} }

View File

@ -53,8 +53,6 @@ class UserDetailsImpl(
result = 31 * result + id.hashCode() result = 31 * result + id.hashCode()
return result return result
} }
} }
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY) @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY)

View File

@ -47,6 +47,4 @@ class KtorResolveResponse(val ktorHttpResponse: HttpResponse) : ResolveResponse
result = 31 * result + _bodyAsBytes.contentHashCode() result = 31 * result + _bodyAsBytes.contentHashCode()
return result return result
} }
} }

View File

@ -78,7 +78,6 @@ class StatusesRequest {
")" ")"
} }
@Suppress("EnumNaming", "EnumEntryNameCase") @Suppress("EnumNaming", "EnumEntryNameCase")
enum class Visibility { enum class Visibility {
`public`, `public`,

View File

@ -12,7 +12,6 @@ class LruCache<K, V>(private val maxSize: Int) : LinkedHashMap<K, V>(15, 0.75f,
" ${super.toString()}" " ${super.toString()}"
} }
companion object { companion object {
@Serial @Serial
private const val serialVersionUID: Long = -6446947260925053191L private const val serialVersionUID: Long = -6446947260925053191L

View File

@ -22,6 +22,4 @@ class TempFile<T : Path?>(val path: T) : AutoCloseable {
override fun hashCode(): Int { override fun hashCode(): Int {
return path?.hashCode() ?: 0 return path?.hashCode() ?: 0
} }
} }