MCPcopy Create free account
hub / github.com/jwtk/jjwt / nullSafe

Method nullSafe

impl/src/main/java/io/jsonwebtoken/impl/lang/Bytes.java:35–37  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

33 }
34
35 public static byte[] nullSafe(byte[] bytes) {
36 return bytes != null ? bytes : Bytes.EMPTY;
37 }
38
39 public static byte[] randomBits(int numBits) {
40 return random(numBits / Byte.SIZE);

Callers 1

PayloadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected