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

Improve maintainability / readability / javadoc #251

Merged
merged 14 commits into from
Nov 2, 2023

Conversation

guicamest
Copy link
Contributor

Description of changes:

This PR addresses some suggestions of the IDE:

  • Unnecessary types
  • Unnecessary variable initialization
  • Replace one liner lambdas with expression lambdas
  • Declared exceptions that are not thrown
  • Replace assertTrue(x instanceof b) with assertThat().isInstanceOf
  • Use collection.isEmpty() when possible

For the cases where Unnecessary variable initialization was found, the code has been rewritten with smaller methods, making the code easier to understand (see 2da3ec0 for example)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@guicamest guicamest changed the title Code cleanup ide Improve maintainability / readability / javadocs Nov 2, 2023
@guicamest guicamest changed the title Improve maintainability / readability / javadocs Improve maintainability / readability / javadoc Nov 2, 2023
Copy link
Contributor

@markjschreiber markjschreiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@markjschreiber markjschreiber merged commit 68179cf into awslabs:main Nov 2, 2023
1 check passed
@guicamest guicamest deleted the codeCleanupIDE branch November 2, 2023 18:56
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