mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
67208e5899
commit
e43e1575cf
|
@ -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(" +
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue