@Nullable on primitive 'int' or 'byte' is invalid, remove it.
Change-Id: I4abf509b978b6004c8306dc944cacbc765a67c89
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protected Cache<RpcResponseKey, ResponseExpectedRpcListener<?>> responseCache;
- AbstractConnectionAdapter(@NonNull final Channel channel, @Nullable final InetSocketAddress address,
- @Nullable final int channelOutboundQueueSize) {
+ AbstractConnectionAdapter(final @NonNull Channel channel, final @Nullable InetSocketAddress address,
+ final int channelOutboundQueueSize) {
this.channel = requireNonNull(channel);
this.address = address;
return netmask;
}
- @Nullable
@SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
- public static byte[] convertArbitraryMaskToByteArray(final DottedQuad mask) {
+ public static byte @Nullable[] convertArbitraryMaskToByteArray(final DottedQuad mask) {
final String maskValue;
if (mask != null && mask.getValue() != null) {
maskValue = mask.getValue();
return false;
}
- @Nullable
@SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
- public static byte[] convertIpv6ArbitraryMaskToByteArray(final Ipv6ArbitraryMask mask) {
+ public static byte @Nullable[] convertIpv6ArbitraryMaskToByteArray(final Ipv6ArbitraryMask mask) {
final String maskValue;
if (mask != null && mask.getValue() != null) {
maskValue = mask.getValue();
* @param addressParts the address parts
* @return the byte [ ]
*/
- @Nullable
@SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
- public static byte[] extractIpv4Mask(final Iterator<String> addressParts) {
+ public static byte @Nullable[] extractIpv4Mask(final Iterator<String> addressParts) {
final int prefix;
if (addressParts.hasNext()) {
int potentionalPrefix = Integer.parseInt(addressParts.next());
* @param numBytes convert to number of bytes
* @return byte array containing n * 8 bits.
*/
- @Nullable
@SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
- public static byte[] convertBigIntegerToNBytes(@Nullable final BigInteger bigInteger, final int numBytes) {
+ public static byte @Nullable[] convertBigIntegerToNBytes(final @Nullable BigInteger bigInteger,
+ final int numBytes) {
if (bigInteger == null) {
return null;
}
* @param uint Unsigned long, potentially null.
* @return byte array, or null if input was null.
*/
- @Nullable
@SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS")
- public static byte[] uint64toBytes(@Nullable final Uint64 uint) {
+ public static byte @Nullable[] uint64toBytes(@Nullable final Uint64 uint) {
return uint == null ? null : Longs.toByteArray(uint.longValue());
}