projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don’t hand in null to function not allowing it
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
fcp
/
Command.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java
b/src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java
index
03ecf1d
..
343954a
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/fcp/Command.java
@@
-19,13
+19,10
@@
package net.pterodactylus.sone.freenet.fcp;
import net.pterodactylus.sone.freenet.SimpleFieldSetBuilder;
import freenet.support.SimpleFieldSet;
import net.pterodactylus.sone.freenet.SimpleFieldSetBuilder;
import freenet.support.SimpleFieldSet;
-import freenet.support.api.Bucket;
/**
* Implementation of an FCP interface for other clients or plugins to
* communicate with Sone.
/**
* Implementation of an FCP interface for other clients or plugins to
* communicate with Sone.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public interface Command {
*/
public interface Command {
@@
-35,20
+32,14
@@
public interface Command {
*
* @param parameters
* The parameters of the comand
*
* @param parameters
* The parameters of the comand
- * @param data
- * The data of the command (may be {@code null})
- * @param accessType
- * The access type
* @return A reply to send back to the plugin
* @throws FcpException
* if an error processing the parameters occurs
*/
* @return A reply to send back to the plugin
* @throws FcpException
* if an error processing the parameters occurs
*/
- public Response execute(SimpleFieldSet parameters
, Bucket data, AccessType accessType
) throws FcpException;
+ public Response execute(SimpleFieldSet parameters) throws FcpException;
/**
* The access type of the request.
/**
* The access type of the request.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public static enum AccessType {
*/
public static enum AccessType {
@@
-65,8
+56,6
@@
public interface Command {
/**
* Interface for command replies.
/**
* Interface for command replies.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public static class Response {
*/
public static class Response {
@@
-103,8
+92,6
@@
public interface Command {
/**
* Response implementation that can return an error message and an optional
* error code.
/**
* Response implementation that can return an error message and an optional
* error code.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class ErrorResponse extends Response {
*/
public class ErrorResponse extends Response {