Skip to content

Conversation

@Basmala27
Copy link

  • Added null checks in getData and removeData methods to handle cases where the key does not exist.
  • Updated tests for addData, getData, and removeData to ensure proper functionality.
  • Improved the displayData method to provide clearer output.
  • Fixed minor formatting and documentation issues in the DataTransferHashMap class.

Closes #1269 (if the issue is related to an existing issue on GitHub)

What problem does this PR solve?

The DataTransferHashMap class was not handling cases where the key does not exist when calling getData and removeData. This caused potential NullPointerExceptions. The tests were also did not cover all edge cases related to missing data. Uncomment the following line if this PR closes some issues -->

Basmala. and others added 2 commits December 8, 2024 20:56
- Added null checks in `getData` and `removeData` methods to handle cases where the key does not exist.
- Updated tests for `addData`, `getData`, and `removeData` to ensure proper functionality.
- Improved the `displayData` method to provide clearer output.
- Fixed minor formatting and documentation issues in the `DataTransferHashMap` class.

Closes iluwatar#1269 (if the issue is related to an existing issue on GitHub)
@iluwatar
Copy link
Owner

iluwatar commented Jan 6, 2025

The build is failing. Please ensure that all the checks pass before requesting review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data Transfer Hash pattern

2 participants