X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FUnlockSoneCommand.java;h=ca5a59e81241dff2c8dfc09f6954dfceaa564c7c;hp=7622cc1351a4b21993820b4719a06415d8c65d13;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=c8897b270214c5e3c1e0c5cd4db9ac1821bfbde0 diff --git a/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java b/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java index 7622cc1..ca5a59e 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java @@ -1,5 +1,5 @@ /* - * Sone - UnlockSoneCommand.java - Copyright © 2013 David Roden + * Sone - UnlockSoneCommand.java - Copyright © 2013–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,6 @@ import net.pterodactylus.sone.freenet.SimpleFieldSetBuilder; import net.pterodactylus.sone.freenet.fcp.FcpException; import freenet.support.SimpleFieldSet; -import freenet.support.api.Bucket; import com.google.common.base.Optional; @@ -31,8 +30,6 @@ import com.google.common.base.Optional; * Implements the “UnlockSone” FCP command. If a valid local Sone was given as * parameter “Sone,” this command will always unlock the Sone and reply with * “SoneUnlocked.” - * - * @author David ‘Bombe’ Roden */ public class UnlockSoneCommand extends AbstractSoneCommand { @@ -51,7 +48,7 @@ public class UnlockSoneCommand extends AbstractSoneCommand { // @Override - public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException { + public Response execute(SimpleFieldSet parameters) throws FcpException { Optional sone = getSone(parameters, "Sone", true, true); getCore().unlockSone(sone.get()); return new Response("SoneUnlocked", new SimpleFieldSetBuilder().put("Sone", sone.get().getId()).get());