X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=84e7499f5f8b3ffe5831c761566a97e0d7bf4424;hp=b4854457e2d15c1af5e3e14d47527d680f29331c;hb=b621439b18b409255cf877d54a5b2b78a43a98d8;hpb=fd88107b013522d7620f5297386472206f320e10 diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index b485445..84e7499 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -156,7 +156,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, /** Sone rescuers. */ /* synchronize access on this on sones. */ - private final Map soneRescuers = new HashMap(); + private final Map soneRescuers = new HashMap(); /** All known Sones. */ private final Set knownSones = new HashSet(); @@ -269,9 +269,8 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, * The local Sone to get the rescuer for * @return The Sone rescuer for the given Sone */ - public SoneRescuer getSoneRescuer(Sone sone) { + public SoneRescuer getSoneRescuer(LocalSone sone) { checkNotNull(sone, "sone must not be null"); - checkArgument(sone.isLocal(), "sone must be local"); synchronized (soneRescuers) { SoneRescuer soneRescuer = soneRescuers.get(sone); if (soneRescuer == null) {