Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFLY-20383] Get rid of compiler warnings #1020

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Conversation

kabir
Copy link
Contributor

@kabir kabir commented Feb 25, 2025

Also fix BroadcastPublisher.onError()

https://issues.redhat.com/browse/WFLY-20383

@kabir kabir requested a review from emmartins as a code owner February 25, 2025 11:22
@emmartins
Copy link
Contributor

@kabir FYI the test with deps (i.e. with wildfly main) gets into a deadend, please see https://github.com/wildfly/quickstart/actions/runs/13520048394/job/37788930160?pr=1020

@kabir
Copy link
Contributor Author

kabir commented Feb 26, 2025

I have triggered another run to double check

@kabir
Copy link
Contributor Author

kabir commented Feb 27, 2025

@emmartins Should be good now (and thanks @jamezp for the assistance!)

@@ -45,7 +45,7 @@ public UserMessagingBean() {

@Inject
public UserMessagingBean(@Channel("user") Publisher<String> receiver) {
this.broadcastPublisher = new BroadcastPublisher(receiver);
this.broadcastPublisher = new BroadcastPublisher<String>(receiver);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not critical, but this could just be new BroadcastPubliser<>(receiver);.

@Override
public void onSubscribe(Subscription subscription) {
baseSubscription = subscription;
subscription.request(1);
}

@Override
public void onNext(Object o) {
public void onNext(T o) {
System.out.println("Received " + o + " - forwarding it to all the subscribers");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not part of this change, but a System.out.println() should not be used.

@emmartins emmartins merged commit 8b4fd59 into wildfly:main Mar 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants