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

Fix Type Mismatch Error in Maybe Class #37

Merged
merged 3 commits into from
Sep 9, 2023

Conversation

porfanid
Copy link
Contributor

@porfanid porfanid commented Sep 3, 2023

This pull request addresses issue #36, which was reported as a type mismatch error in the Maybe.java class of the com.google.mu.util package. The issue resulted in red lines appearing in the IntelliJ IDEA editor and potentially caused runtime errors due to incorrect type annotations and declarations in certain methods.

Changes Made:

Corrected the type annotations and declarations in the following methods:
    public final <X extends Throwable> Stream<T> catching(
    public static <T, E extends Throwable> Stream<Maybe<T, E>> maybeStream(

Expected Behavior:

With these corrections, the type mismatch error has been resolved, and the code in the Maybe.java class now conforms to expected type definitions. This change enhances code readability and eliminates the possibility of runtime errors.

Related Issue:

Fixes #36: Type Mismatch Error in Maybe.java Class

Additional Notes:

Please review the changes and merge this pull request to maintain the code quality and reliability of the Maybe.java class. If you have any further feedback or questions, please feel free to discuss them in the comments.

@fluentfuture fluentfuture merged commit bc011ef into google:master Sep 9, 2023
2 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.

2 participants