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
|
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 "FilterKeyword(" +
|
return "FilterKeyword(" +
|
||||||
|
|
|
@ -29,9 +29,7 @@ class FilterName(name: String) {
|
||||||
return name == other.name
|
return name == other.name
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int = name.hashCode()
|
||||||
return name.hashCode()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "FilterName(" +
|
return "FilterName(" +
|
||||||
|
|
|
@ -123,6 +123,7 @@ class Relationship(
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UnnecessaryAbstractClass")
|
||||||
abstract class InternalRelationshipDomainService {
|
abstract class InternalRelationshipDomainService {
|
||||||
protected fun block(relationship: Relationship) {
|
protected fun block(relationship: Relationship) {
|
||||||
relationship.block()
|
relationship.block()
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.beans.factory.annotation.Value
|
||||||
import org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator
|
import org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator
|
||||||
import java.sql.SQLException
|
import java.sql.SQLException
|
||||||
|
|
||||||
@Suppress("VarCouldBeVal")
|
@Suppress("VarCouldBeVal", "UnnecessaryAbstractClass")
|
||||||
abstract class AbstractRepository(protected val logger: Logger) {
|
abstract class AbstractRepository(protected val logger: Logger) {
|
||||||
private val sqlErrorCodeSQLExceptionTranslator = SQLErrorCodeSQLExceptionTranslator()
|
private val sqlErrorCodeSQLExceptionTranslator = SQLErrorCodeSQLExceptionTranslator()
|
||||||
private val springDataAccessExceptionSQLExceptionTranslator = SpringDataAccessExceptionSQLExceptionTranslator()
|
private val springDataAccessExceptionSQLExceptionTranslator = SpringDataAccessExceptionSQLExceptionTranslator()
|
||||||
|
|
Loading…
Reference in New Issue