style: fix lint

This commit is contained in:
usbharu 2024-09-13 16:33:17 +09:00
parent 67208e5899
commit e43e1575cf
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
4 changed files with 4 additions and 12 deletions

View File

@ -154,9 +154,7 @@ class Actor(
return id == other.id return id == other.id
} }
override fun hashCode(): Int { override fun hashCode(): Int = id.hashCode()
return id.hashCode()
}
override fun toString(): String { override fun toString(): String {
return "Actor(" + return "Actor(" +

View File

@ -28,9 +28,7 @@ class ActorDescription(description: String) {
return description == other.description return description == other.description
} }
override fun hashCode(): Int { override fun hashCode(): Int = description.hashCode()
return description.hashCode()
}
companion object { companion object {
const val LENGTH = 10000 const val LENGTH = 10000

View File

@ -29,9 +29,7 @@ class ActorScreenName(screenName: String) {
return screenName == other.screenName return screenName == other.screenName
} }
override fun hashCode(): Int { override fun hashCode(): Int = screenName.hashCode()
return screenName.hashCode()
}
companion object { companion object {
const val LENGTH = 300 const val LENGTH = 300

View File

@ -35,9 +35,7 @@ class Timeline(
return id == other.id return id == other.id
} }
override fun hashCode(): Int { override fun hashCode(): Int = id.hashCode()
return id.hashCode()
}
companion object { companion object {
fun create( fun create(