@Test public void testIsDESParityAdjustedThrowsNullPointerException() throws Throwable { try { Util.isDESParityAdjusted(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"[B.clone()\" because \"bytes\" is null", ex.getMessage(), "ex.getMessage()"); } } }
public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }
Util { public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); } }
Util { public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }  }
Util { public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }  static void adjustDESParity(byte[] bytes); static boolean isDESParityAdjusted(byte[] bytes); }
Util { public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }  static void adjustDESParity(byte[] bytes); static boolean isDESParityAdjusted(byte[] bytes);  }