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

Use of isEmpty() for issue #11 #12

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Use of isEmpty() for issue #11 #12

merged 1 commit into from
Feb 16, 2024

Conversation

IshaanBajaj20
Copy link
Collaborator

Use isEmpty() to check whether the collection is empty or not. Deliverables Solved!

Proposed Solution:
Use of isEmpty() directly conveys the intent of checking whether the collection has elements or not, making the code more concise and easier to understand. This practice aligns with Java best practices and enhances code readability, maintainability, and clarity for developers who review or modify the codebase.

Changes Made:

  • Use of isEmpty() instead of regular comparison.

Impact:
This issue aims to improve code quality and readability by applying this simple but effective improvement throughout the relevant codebase.

Link to the the issue
#11 (comment)

Screenshot 2024-02-15 at 8 06 33 PM

License agreement
By opening this pull request, you are providing your contribution under the Apache License 2.0 (see LICENSE.md).

Note: new dependencies/libraries
Please refrain from introducing new libraries without consulting the team.

Use isEmpty() to check whether the collection is empty or not. Deliverables Solved!
@IshaanBajaj20 IshaanBajaj20 added Group 09 Group_9_SCM_Project Technical Debt labels Feb 16, 2024
@IshaanBajaj20 IshaanBajaj20 merged commit eaf267f into main Feb 16, 2024
beingtranquil pushed a commit that referenced this pull request Mar 17, 2024
Refactoring the Variable Name to Standard Naming Practices - Issue #9
beingtranquil pushed a commit that referenced this pull request Mar 17, 2024
)

Commit to fix the raised issue :

Rename local variable 'altitude_m' to comply with naming convention
beingtranquil pushed a commit that referenced this pull request Mar 17, 2024
beingtranquil pushed a commit that referenced this pull request Mar 17, 2024
Define and throw a dedicated exception instead of using a generic one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Group 09 Group_9_SCM_Project Technical Debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant