Skip to content

Commit

Permalink
Remove unnecessary suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Nov 14, 2023
1 parent 52b1b24 commit 3795e35
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class MqttSubscribedPublishFlow extends MqttIncomingPublishFlow implement
@Override
public void onSuccess(final @NotNull MqttSubAck subAck) {
if (subscriber instanceof FlowableWithSingleSubscriber) {
//noinspection unchecked
((FlowableWithSingleSubscriber<? super Mqtt5Publish, ? super Mqtt5SubAck>) subscriber).onSingle(subAck);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ static <F, S> void split(
final @NotNull WithSingleSubscriber<? super F, ? super S> subscriber) {

if (subscriber instanceof WithSingleConditionalSubscriber) {
//noinspection unchecked
source.subscribe(new SplitSubscriber.Conditional<>(
(WithSingleConditionalSubscriber<? super F, ? super S>) subscriber));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ private FlowableWithSingleMap(
@Override
protected void subscribeActual(final @NotNull Subscriber<? super FM> subscriber) {
if (subscriber instanceof ConditionalSubscriber) {
//noinspection unchecked
final ConditionalSubscriber<? super FM> conditional = (ConditionalSubscriber<? super FM>) subscriber;
source.subscribeBoth(new MapSubscriber.Conditional<>(conditional, flowableMapper, singleMapper));
} else {
Expand All @@ -76,7 +75,6 @@ protected void subscribeActual(final @NotNull Subscriber<? super FM> subscriber)
@Override
protected void subscribeBothActual(final @NotNull WithSingleSubscriber<? super FM, ? super SM> subscriber) {
if (subscriber instanceof WithSingleConditionalSubscriber) {
//noinspection unchecked
final WithSingleConditionalSubscriber<? super FM, ? super SM> conditional =
(WithSingleConditionalSubscriber<? super FM, ? super SM>) subscriber;
source.subscribeBoth(new WithSingleMapSubscriber.Conditional<>(conditional, flowableMapper, singleMapper));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public FlowableWithSingleMapError(
@Override
protected void subscribeActual(final @NotNull Subscriber<? super F> subscriber) {
if (subscriber instanceof ConditionalSubscriber) {
//noinspection unchecked
final ConditionalSubscriber<? super F> conditional = (ConditionalSubscriber<? super F>) subscriber;
source.subscribe(new MapErrorSubscriber.Conditional<>(conditional, errorMapper));
} else {
Expand All @@ -60,7 +59,6 @@ protected void subscribeActual(final @NotNull Subscriber<? super F> subscriber)
@Override
protected void subscribeBothActual(final @NotNull WithSingleSubscriber<? super F, ? super S> subscriber) {
if (subscriber instanceof WithSingleConditionalSubscriber) {
//noinspection unchecked
final WithSingleConditionalSubscriber<? super F, ? super S> conditional =
(WithSingleConditionalSubscriber<? super F, ? super S>) subscriber;
source.subscribeBoth(new WithSingleMapErrorSubscriber.Conditional<>(conditional, errorMapper));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ public abstract class FlowableWithSingle<F, S> extends Flowable<F> implements Pu
@SchedulerSupport(SchedulerSupport.NONE)
public final void subscribeBoth(final @NotNull WithSingleSubscriber<? super F, ? super S> subscriber) {
if (subscriber instanceof FlowableWithSingleSubscriber) {
//noinspection unchecked
subscribeBoth((FlowableWithSingleSubscriber<? super F, ? super S>) subscriber);
} else {
Checks.notNull(subscriber, "Subscriber");
Expand Down

0 comments on commit 3795e35

Please sign in to comment.