Simplify the ByteArrayWrapper constructor

This commit is contained in:
Maschell 2019-04-24 13:24:08 +02:00
parent 59411e4c7d
commit 254d16a584

View File

@ -18,13 +18,12 @@ package de.mas.wiiu.jnus.utils;
import java.util.Arrays; import java.util.Arrays;
import lombok.NonNull;
public final class ByteArrayWrapper { public final class ByteArrayWrapper {
private final byte[] data; private final byte[] data;
public ByteArrayWrapper(byte[] data) { public ByteArrayWrapper(@NonNull byte[] data) {
if (data == null) {
throw new NullPointerException();
}
this.data = data; this.data = data;
} }