mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
5777adac93
commit
b0ee6b117e
|
@ -30,9 +30,7 @@ class FilterKeyword(
|
|||
return id == other.id
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return id.hashCode()
|
||||
}
|
||||
override fun hashCode(): Int = id.hashCode()
|
||||
|
||||
override fun toString(): String {
|
||||
return "FilterKeyword(" +
|
||||
|
|
|
@ -29,9 +29,7 @@ class FilterName(name: String) {
|
|||
return name == other.name
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return name.hashCode()
|
||||
}
|
||||
override fun hashCode(): Int = name.hashCode()
|
||||
|
||||
override fun toString(): String {
|
||||
return "FilterName(" +
|
||||
|
|
|
@ -123,6 +123,7 @@ class Relationship(
|
|||
return result
|
||||
}
|
||||
|
||||
@Suppress("UnnecessaryAbstractClass")
|
||||
abstract class InternalRelationshipDomainService {
|
||||
protected fun block(relationship: Relationship) {
|
||||
relationship.block()
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.beans.factory.annotation.Value
|
|||
import org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator
|
||||
import java.sql.SQLException
|
||||
|
||||
@Suppress("VarCouldBeVal")
|
||||
@Suppress("VarCouldBeVal", "UnnecessaryAbstractClass")
|
||||
abstract class AbstractRepository(protected val logger: Logger) {
|
||||
private val sqlErrorCodeSQLExceptionTranslator = SQLErrorCodeSQLExceptionTranslator()
|
||||
private val springDataAccessExceptionSQLExceptionTranslator = SpringDataAccessExceptionSQLExceptionTranslator()
|
||||
|
|
Loading…
Reference in New Issue