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

Refactor Change Null Check to Optional Class #103

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

xeounxzxu
Copy link
Contributor

@xeounxzxu xeounxzxu commented Jul 4, 2024

hello @lpandzic

Refactored code for clearer exception handling.
Using the Optional class provides clear null handling and exception handling benefits.

we can also enjoy the following benefits:

  1. Express your intentions clearly
  2. Consistent null handling
    3.Prevent NullPointerException (NPE)
  3. Better method chaining
  4. Provides various functions
  5. Improved readability
  6. Functional programming style

@xeounxzxu xeounxzxu requested a review from lpandzic July 11, 2024 12:51
@lpandzic lpandzic merged commit 42da787 into infobip:master Jul 12, 2024
3 checks passed
@lpandzic
Copy link
Member

merged, thanks!

@xeounxzxu xeounxzxu deleted the refactor-code-optional branch July 18, 2024 14:22
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