netty5/transport-rxtx/src/main/java/io/netty/channel/rxtx
Boris Unckel c3416d8ad2
Utilize i.n.u.internal.ObjectUtil to assert Preconditions (transport*) (#11170) (#11181)
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 14:13:14 +02:00
..
DefaultRxtxChannelConfig.java Utilize i.n.u.internal.ObjectUtil to assert Preconditions (transport*) (#11170) (#11181) 2021-04-22 14:13:14 +02:00
package-info.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
RxtxChannel.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
RxtxChannelConfig.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
RxtxChannelOption.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
RxtxDeviceAddress.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00