DATAREDIS-971 - Polishing.

Add test. Use primitive types instead of wrappers for signed flag. Add author tag.

Original pull request: #447.
This commit is contained in:
Mark Paluch
2019-04-17 15:30:15 +02:00
parent 2bc6aa8706
commit f2a0623d6e
2 changed files with 51 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* The actual {@code BITFIELD} command representation holding several {@link BitFieldSubCommand}s to execute.
*
* @author Christoph Strobl
* @author Qiang Lee
* @since 2.1
*/
public class BitFieldSubCommands implements Iterable<BitFieldSubCommand> {
@@ -88,7 +89,7 @@ public class BitFieldSubCommands implements Iterable<BitFieldSubCommand> {
/**
* Create new {@link BitFieldSubCommands} adding given {@link BitFieldSet} to the sub commands.
*
* @param get must not be {@literal null}.
* @param set must not be {@literal null}.
* @return
*/
protected BitFieldSubCommands set(BitFieldSet set) {
@@ -434,7 +435,7 @@ public class BitFieldSubCommands implements Iterable<BitFieldSubCommand> {
private final boolean signed;
private final int bits;
private BitFieldType(Boolean signed, Integer bits) {
private BitFieldType(boolean signed, Integer bits) {
this.signed = signed;
this.bits = bits;