netty5/codec-mqtt/src
Boris Unckel d3fa33058d
Utilize i.n.u.internal.ObjectUtil to assert Preconditions (codec*) (#11170) (#11185)
Motivation:

NullChecks resulting in a NullPointerException or IllegalArgumentException, numeric ranges (>0, >=0) checks, not empty strings/arrays checks must never be anonymous but with the parameter or variable name which is checked. They must be specific and should not be done with an "OR-Logic" (if a == null || b == null) throw new NullPointerEx.

Modifications:

* import static relevant checks
* Replace manual checks with ObjectUtil methods

Result:

All checks needed are done with ObjectUtil, some exception texts are improved.
Fixes #11170
2021-04-22 16:01:28 +02:00
..
main/java/io/netty/handler/codec/mqtt Utilize i.n.u.internal.ObjectUtil to assert Preconditions (codec*) (#11170) (#11185) 2021-04-22 16:01:28 +02:00
test/java/io/netty/handler/codec/mqtt Allow to use int while build MqttMessageIdVariableHeader (#10930) 2021-01-21 14:40:45 +01:00