X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FUnlockSoneCommand.java;h=d4896032baab084f01b857f25262b0583e1cea67;hb=438378deab1514f0f608d975ef65f5b7aea44ccb;hp=7ecfada889560711e063206469ad6b93661300ec;hpb=6f019de1d4d9742981d851ac3c9097cca8bff58e;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java b/src/main/java/net/pterodactylus/sone/fcp/UnlockSoneCommand.java
index 7ecfada..d489603 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 - LockSoneCommand.java - Copyright © 2013 David Roden
+ * Sone - UnlockSoneCommand.java - Copyright © 2013â2020 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());