Skip to content

Commit

Permalink
Replace CheckReturnValue with jetbrains annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Nov 15, 2023
1 parent ed6c4dc commit 742a532
Show file tree
Hide file tree
Showing 78 changed files with 77 additions and 134 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dagger = "2.48.1"
equalsverifier = "3.15.3"
guava = "32.1.3-jre"
jctools = "4.0.1"
jetbrains-annotations = "24.0.1"
jetbrains-annotations = "24.1.0"
junit-jupiter = "5.10.1"
mockito = "4.11.0"
netty = "4.1.101.Final"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hivemq.client2.mqtt.mqtt3.reactor;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.internal.mqtt.mqtt3.reactor.Mqtt3ReactorClientView;
import com.hivemq.client2.mqtt.MqttGlobalPublishFilter;
import com.hivemq.client2.mqtt.mqtt3.Mqtt3Client;
Expand All @@ -33,6 +32,7 @@
import com.hivemq.client2.mqtt.mqtt3.message.unsubscribe.Mqtt3UnsubscribeBuilder;
import com.hivemq.client2.rx.reactor.FluxWithSingle;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hivemq.client2.mqtt.mqtt5.reactor;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.internal.mqtt.reactor.MqttReactorClient;
import com.hivemq.client2.mqtt.MqttGlobalPublishFilter;
import com.hivemq.client2.mqtt.mqtt5.Mqtt5Client;
Expand All @@ -35,6 +34,7 @@
import com.hivemq.client2.mqtt.mqtt5.message.unsubscribe.Mqtt5UnsubscribeBuilder;
import com.hivemq.client2.rx.reactor.FluxWithSingle;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down
29 changes: 0 additions & 29 deletions src/main/java/com/hivemq/client2/annotations/CheckReturnValue.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.mqtt3.Mqtt3ClientBuilder;
import com.hivemq.client2.mqtt.mqtt5.Mqtt5ClientBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.datatypes.MqttClientIdentifier;
import com.hivemq.client2.mqtt.lifecycle.MqttAutoReconnect;
import com.hivemq.client2.mqtt.lifecycle.MqttAutoReconnectBuilder;
import com.hivemq.client2.mqtt.lifecycle.MqttConnectedListener;
import com.hivemq.client2.mqtt.lifecycle.MqttDisconnectedListener;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import io.reactivex.rxjava3.core.Scheduler;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Range;
import org.jetbrains.annotations.*;

import java.util.concurrent.Executor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.internal.util.UnsignedDataTypes;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Range;
import org.jetbrains.annotations.*;

import java.net.InetAddress;
import java.net.InetSocketAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.datatypes;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.datatypes;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.datatypes;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.datatypes;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.datatypes;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.lifecycle;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.lifecycle;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Range;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@

package com.hivemq.client2.mqtt.lifecycle;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttTransportConfig;
import com.hivemq.client2.mqtt.MqttTransportConfigBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Range;
import org.jetbrains.annotations.*;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hivemq.client2.mqtt.mqtt3;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttGlobalPublishFilter;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3ConnAck;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3Connect;
Expand All @@ -31,6 +30,7 @@
import com.hivemq.client2.mqtt.mqtt3.message.unsubscribe.Mqtt3Unsubscribe;
import com.hivemq.client2.mqtt.mqtt3.message.unsubscribe.Mqtt3UnsubscribeBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

import java.util.concurrent.CompletableFuture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hivemq.client2.mqtt.mqtt3;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttGlobalPublishFilter;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3ConnAck;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3Connect;
Expand All @@ -31,6 +30,7 @@
import com.hivemq.client2.mqtt.mqtt3.message.unsubscribe.Mqtt3Unsubscribe;
import com.hivemq.client2.mqtt.mqtt3.message.unsubscribe.Mqtt3UnsubscribeBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package com.hivemq.client2.mqtt.mqtt3;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.internal.mqtt.mqtt3.Mqtt3RxClientViewBuilder;
import com.hivemq.client2.mqtt.MqttClient;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

package com.hivemq.client2.mqtt.mqtt3;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttClientBuilderBase;
import com.hivemq.client2.mqtt.mqtt3.message.auth.Mqtt3SimpleAuth;
import com.hivemq.client2.mqtt.mqtt3.message.auth.Mqtt3SimpleAuthBuilder;
import com.hivemq.client2.mqtt.mqtt3.message.publish.Mqtt3Publish;
import com.hivemq.client2.mqtt.mqtt3.message.publish.Mqtt3WillPublishBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hivemq.client2.mqtt.mqtt3;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttGlobalPublishFilter;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3ConnAck;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3Connect;
Expand All @@ -34,6 +33,7 @@
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Single;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.reactivestreams.Publisher;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

package com.hivemq.client2.mqtt.mqtt3.lifecycle;

import com.hivemq.client2.annotations.CheckReturnValue;
import com.hivemq.client2.mqtt.MqttTransportConfig;
import com.hivemq.client2.mqtt.MqttTransportConfigBuilder;
import com.hivemq.client2.mqtt.lifecycle.MqttReconnector;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3Connect;
import com.hivemq.client2.mqtt.mqtt3.message.connect.Mqtt3ConnectBuilder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.hivemq.client2.mqtt.mqtt3.message.auth;

import com.hivemq.client2.annotations.CheckReturnValue;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.CheckReturnValue;
import org.jetbrains.annotations.NotNull;

/**
Expand Down
Loading

0 comments on commit 742a532

Please sign in to comment.