Skip to content

Commit

Permalink
♻️ 리펙터링
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Oct 2, 2024
1 parent 07bd277 commit 39d68dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.util.concurrent.ConcurrentHashMap
abstract class QueryRepositorySpyBase<E : DomainEntity<E, ID>, ID : TypeId<*>> :
QueryRepository<E, ID> {

open val storage: MutableMap<ID, E> = ConcurrentHashMap()
protected val storage: MutableMap<ID, E> = ConcurrentHashMap()

override fun find(id: ID): E? = storage[id]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.util.concurrent.ConcurrentHashMap
abstract class RepositorySpyBase<AR : AggregateRoot<AR, ARID>, ARID : TypeId<*>> :
Repository<AR, ARID> {

open val entities = ConcurrentHashMap<ARID, AR>()
protected val entities = ConcurrentHashMap<ARID, AR>()

override fun save(root: AR) {
entities[root.id] = root
Expand Down

0 comments on commit 39d68dd

Please sign in to comment.