style: fix lint

This commit is contained in:
usbharu 2024-09-21 17:27:16 +09:00
parent 5777adac93
commit b0ee6b117e
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
4 changed files with 4 additions and 7 deletions

View File

@ -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(" +

View File

@ -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(" +

View File

@ -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()

View File

@ -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()