Commit 956e3e1a by Facundo Javier Gelatti

Add annotation to Block constructors to suppress the 'unused' warnings

An empty constructor is mandatory to perform the unpacking, but because
the unpacking call them through reflection, the tools mark the
constructors as unused. The annotation prevents that, while documenting
that the constructors are necessary.
1 parent 997b1078
......@@ -24,6 +24,7 @@ public final class FileBlock
* Mandatory empty constructor
* @see org.stegosuite.model.payload.Payload#unpack(byte[])
*/
@SuppressWarnings("unused")
public FileBlock() {}
/**
......
......@@ -19,6 +19,7 @@ public final class MessageBlock
* Mandatory empty constructor
* @see org.stegosuite.model.payload.Payload#unpack(byte[])
*/
@SuppressWarnings("unused")
public MessageBlock() {}
public MessageBlock(String message) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!