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
}
override fun hashCode(): Int {
return id.hashCode()
}
override fun hashCode(): Int = id.hashCode()
override fun toString(): String {
return "FilterKeyword(" +

View File

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

View File

@ -123,6 +123,7 @@ class Relationship(
return result
}
@Suppress("UnnecessaryAbstractClass")
abstract class InternalRelationshipDomainService {
protected fun block(relationship: Relationship) {
relationship.block()

View File

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