X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FWebOfTrustUpdater.java;h=64d97ad343d60c0cac86d09b23ac93b608ed38ef;hb=7d336ec14294bf661c7257d8cded62201c840d34;hp=4d0528bec7dffe6b9de1758f43276514b95fc930;hpb=8a6928885e118595ee49aec242f9747c0ea7fe39;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java index 4d0528b..64d97ad 100644 --- a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java +++ b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java @@ -102,18 +102,6 @@ public class WebOfTrustUpdater extends AbstractService { } /** - * Adds the given context to the given own identity. - * - * @param ownIdentity - * The own identity to add the context to - * @param context - * The context to add - */ - public void addContext(OwnIdentity ownIdentity, String context) { - addContextWait(ownIdentity, context, false); - } - - /** * Adds the given context to the given own identity, waiting for completion of * the operation. * @@ -230,7 +218,7 @@ public class WebOfTrustUpdater extends AbstractService { while (!shouldStop()) { try { WebOfTrustUpdateJob updateJob = updateJobs.take(); - if (shouldStop() || (updateJob == stopJob)) { + if (shouldStop()) { break; } logger.log(Level.FINE, "Running Trust Update Job: " + updateJob); @@ -332,7 +320,8 @@ public class WebOfTrustUpdater extends AbstractService { * * @author David ‘Bombe’ Roden */ - private class SetTrustJob extends WebOfTrustUpdateJob { + @VisibleForTesting + class SetTrustJob extends WebOfTrustUpdateJob { /** The identity giving the trust. */ private final OwnIdentity truster;