Skip to content

Commit

Permalink
Using ConcurrentMap interface instead of implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaud committed Mar 11, 2020
1 parent 309d1f1 commit 8a0b017
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -53,6 +53,7 @@ import java.util.EventListener
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentLinkedDeque
import java.util.concurrent.ConcurrentMap
import java.util.concurrent.ConcurrentSkipListSet
import java.util.concurrent.TimeUnit
import java.util.logging.Logger
Expand Down Expand Up @@ -108,7 +109,7 @@ abstract class SpaceRepository implements SpaceListener {

/** Replies the internal map that contains the spaces
*/
protected abstract def getSharedStructure : ConcurrentHashMap<UUID, SpaceDescription>
protected abstract def getSharedStructure : ConcurrentMap<UUID, SpaceDescription>

/** Create a space description.
*
Expand Down Expand Up @@ -173,7 +174,7 @@ abstract class SpaceRepository implements SpaceListener {
return defaultSpace
}

private def createSpaceFirstInstance(spec : Class<? extends SpaceSpecification<S>>, spaceID : SpaceID,
protected def createSpaceFirstInstance(spec : Class<? extends SpaceSpecification<S>>, spaceID : SpaceID,
creationParams : Object[]) : S with S extends Space {
assert spaceID.spaceSpecification === null ||
spaceID.spaceSpecification == spec, "The specification type is invalid"
Expand Down

0 comments on commit 8a0b017

Please sign in to comment.