From 254d16a58400178c638730b27ea43a95b2537c0e Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 24 Apr 2019 13:24:08 +0200 Subject: [PATCH] Simplify the ByteArrayWrapper constructor --- src/de/mas/wiiu/jnus/utils/ByteArrayWrapper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/de/mas/wiiu/jnus/utils/ByteArrayWrapper.java b/src/de/mas/wiiu/jnus/utils/ByteArrayWrapper.java index c3a9f89..24ef546 100644 --- a/src/de/mas/wiiu/jnus/utils/ByteArrayWrapper.java +++ b/src/de/mas/wiiu/jnus/utils/ByteArrayWrapper.java @@ -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; }