AyushMhaisane opened a new pull request, #2632:
URL: https://github.com/apache/pekko/pull/2632
This PR fixes compiler warnings related to "unchecked call to expectNext(I)"
in SourceTest.java.
The issue was caused by TestSink.create(system) returning a raw type when
not explicitly typed. This change adds the necessary type witnesses (e.g.,
<Integer>, <String>) to the TestSink.create calls to ensure type safety and
eliminate the warnings.
Changes
Updated SourceTest.java to use explicit types in TestSink.create (e.g.,
TestSink.<Integer>create(system)).
Updated Source creation where necessary to match the Sink types (e.g.,
Source.<String>fromArray(...)).
Related Issue Fixes #2625
Verification
Ran Test/compile in stream-tests module: Success (Warnings related to
SourceTest.java are gone).
Ran testOnly org.apache.pekko.stream.javadsl.SourceTest: All tests
passed.
Checklist:
[x] The commit message follows the [contribution
guidelines](https://github.com/apache/pekko/blob/main/CONTRIBUTING.md).
[x] Tests have been run and passed.
[x] No logic changes, only type safety improvements.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]