X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FLockSoneCommand.java;h=691bc4b15006a263df9cc930a3d7a3f88dede1b8;hb=2f32dc2119bcf370cc982ac21782720f35fdc034;hp=287ec9162711089c376127caa5d0aeb38a399c79;hpb=76ed638264e531a26e35647d13702db865a52321;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/fcp/LockSoneCommand.java b/src/main/java/net/pterodactylus/sone/fcp/LockSoneCommand.java
index 287ec91..691bc4b 100644
--- a/src/main/java/net/pterodactylus/sone/fcp/LockSoneCommand.java
+++ b/src/main/java/net/pterodactylus/sone/fcp/LockSoneCommand.java
@@ -1,5 +1,5 @@
/*
- * Sone - LockSoneCommand.java - Copyright © 2013â2015 David Roden
+ * Sone - LockSoneCommand.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 âLockSoneâ FCP command. If a valid local Sone was given as
* parameter âSone,â this command will always lock the Sone and reply with
* âSoneLocked.â
- *
- * @author David âBombeâ Roden
*/
public class LockSoneCommand extends AbstractSoneCommand {
@@ -51,7 +48,7 @@ public class LockSoneCommand 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().lockSone(sone.get());
return new Response("SoneLocked", new SimpleFieldSetBuilder().put("Sone", sone.get().getId()).get());