Skip to content

Commit

Permalink
Merge pull request #631 from smallrye/fix/simpler-uni-to-multi
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored Jul 20, 2021
2 parents 941c555 + b4b19bf commit 165a9c9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion implementation/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,23 @@
"criticality" : "highlight",
"minSeverity" : "POTENTIALLY_BREAKING",
"minCriticality" : "documented",
"differences" : [ ]
"differences" : [
{
"ignore": true,
"code": "java.class.nowFinal",
"old": "class io.smallrye.mutiny.converters.uni.UniToMultiPublisher<T>",
"new": "class io.smallrye.mutiny.converters.uni.UniToMultiPublisher<T>",
"justification": "Internal API optimization"
},
{
"ignore": true,
"code": "java.class.nonFinalClassInheritsFromNewClass",
"old": "class io.smallrye.mutiny.converters.uni.UniToMultiPublisher<T>",
"new": "class io.smallrye.mutiny.converters.uni.UniToMultiPublisher<T>",
"superClass": "io.smallrye.mutiny.operators.AbstractMulti<T>",
"justification": "Internal API optimization"
}
]
}
}, {
"extension" : "revapi.reporter.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

import java.util.concurrent.atomic.AtomicReference;

import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;

import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.operators.AbstractMulti;
import io.smallrye.mutiny.operators.AbstractUni;
import io.smallrye.mutiny.subscription.UniSubscriber;
import io.smallrye.mutiny.subscription.UniSubscription;

public class UniToMultiPublisher<T> implements Publisher<T> {
public final class UniToMultiPublisher<T> extends AbstractMulti<T> {

private final Uni<T> uni;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public UniConvert<T> convert() {

@Override
public Multi<T> toMulti() {
return Multi.createFrom().safePublisher(new UniToMultiPublisher<>(this));
return new UniToMultiPublisher<>(this);
}

@Override
Expand Down

0 comments on commit 165a9c9

Please sign in to comment.