To ensure non-null, check whether a parameter is null in public interface. Although Armeria checks null, but we also check null because we treat Armeria implementation as black box. Therefore, if don'y call our other public interface, always check null using requireNonNull.
To ensure non-null, check whether a parameter is
null
in public interface. Although Armeria checks null, but we also check null because we treat Armeria implementation as black box. Therefore, if don'y call our other public interface, always check null usingrequireNonNull
.