iluwatar / 30-seconds-of-java

Collection of reusable tested Java 17 compatible code snippets that you can understand in 30 seconds or less.
https://java-design-patterns.com/snippets.html
MIT License
1.04k stars 410 forks source link

Update MultiArrayConcatenationSnippet.java #184

Closed adarsh-jha1611 closed 12 months ago

adarsh-jha1611 commented 1 year ago

In this modified version, we added null checks for both the first array and the arrays in the rest parameter. If either of them is null, an IllegalArgumentException is thrown. This helps to ensure that the method handles null arrays appropriately and provides more meaningful error messages.

stale[bot] commented 1 year ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 1 year ago

Closed due to inactivity. Thank you for your contributions.

iluwatar commented 1 year ago

Looks good in general. Could you update the README.md accordingly?

adarsh-jha1611 commented 1 year ago

Looks good in general. Could you update the README.md accordingly?

yeah sure

stale[bot] commented 1 year ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 12 months ago

Closed due to inactivity. Thank you for your contributions.