mirror of
https://github.com/usbharu/Hideout.git
synced 2026-07-27 15:43:39 +00:00
style: fix lint
This commit is contained in:
+1
-3
@@ -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(" +
|
||||
|
||||
+1
-3
@@ -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(" +
|
||||
|
||||
+1
@@ -123,6 +123,7 @@ class Relationship(
|
||||
return result
|
||||
}
|
||||
|
||||
@Suppress("UnnecessaryAbstractClass")
|
||||
abstract class InternalRelationshipDomainService {
|
||||
protected fun block(relationship: Relationship) {
|
||||
relationship.block()
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user