Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Apply various code quality fixes, remove unused imports, use diamond operator, try-with-resources, etc #445

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

hansenmc
Copy link
Contributor

  • remove unused imports
  • use try-with-resources for closeable objects
  • use diamond operator for object construction
  • use addAll() instead of iterating over every item and adding each one
  • use Map.computeIfAbsent() to simplify
  • use StringBuilder instead of concatenating strings inside of a loop
  • use equalsIgnoreCase when comparing values without caring about case

- use try-with-resources for closeable objects
- use diamond operator for object construction
- use addAll() instead of iterating over every item and adding each one
- use Map.computeIfAbsent() to simplify
 - use StringBuilder instead of concatenating strings inside of a loop
 - use equalsIgnoreCase when comparing values without caring about case
@ryanjdew ryanjdew merged commit c3baa91 into marklogic:dev Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants