Here you can find the source of assertNotNullEightBytes(byte[] bytes)
public static void assertNotNullEightBytes(byte[] bytes)
//package com.java2s; //License from project: Apache License public class Main { public static void assertNotNullEightBytes(byte[] bytes) { if (bytes == null) { throw new IllegalArgumentException("Expected 8 bytes, but got null."); }// w ww.j a v a2 s. c o m if (bytes.length != 8) { throw new IllegalArgumentException(String.format("Expected 8 bytes, but got: %d bytes.", bytes.length)); } } }