mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-05 07:45:11 +01:00
Simplify the ByteArrayWrapper constructor
This commit is contained in:
parent
59411e4c7d
commit
254d16a584
@ -18,13 +18,12 @@ package de.mas.wiiu.jnus.utils;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
||||
public final class ByteArrayWrapper {
|
||||
private final byte[] data;
|
||||
|
||||
public ByteArrayWrapper(byte[] data) {
|
||||
if (data == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
public ByteArrayWrapper(@NonNull byte[] data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user