Skip to content

Rename and relocate trie autocomplete implementation#7459

Open
Chandu0501 wants to merge 1 commit into
TheAlgorithms:masterfrom
Chandu0501:fix/trie-autocomplete-naming
Open

Rename and relocate trie autocomplete implementation#7459
Chandu0501 wants to merge 1 commit into
TheAlgorithms:masterfrom
Chandu0501:fix/trie-autocomplete-naming

Conversation

@Chandu0501

Copy link
Copy Markdown

Closes #7457

This moves the trie autocomplete implementation into the datastructures.trees package and renames its file and class to TrieAutocomplete, following Java naming conventions. The matching PMD exclusion now references the renamed class.

There was no existing matching test class to rename, and this change does not alter algorithm behavior.

Verification:

  • mvn test (9,310 tests passed)
  • mvn -q checkstyle:check
  • mvn -q spotbugs:check
  • Repository structure check reproduced locally in PowerShell because Python is unavailable on this machine

PMD note: mvn -q pmd:check could not start on this Windows checkout because the repository's file://${basedir} custom ruleset URI resolves as an unsupported Windows file:// resource path.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations. (Not applicable: no new algorithm.)
  • All new algorithms include a corresponding test class that validates their functionality. (Not applicable: no new algorithm.)
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java (No new code; rename/package update only.)

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.73%. Comparing base (ae861d6) to head (5664aec).

Files with missing lines Patch % Lines
...orithms/datastructures/trees/TrieAutocomplete.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7459      +/-   ##
============================================
+ Coverage     79.72%   79.73%   +0.01%     
- Complexity     7296     7297       +1     
============================================
  Files           803      803              
  Lines         23762    23762              
  Branches       4674     4672       -2     
============================================
+ Hits          18944    18947       +3     
+ Misses         4059     4058       -1     
+ Partials        759      757       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Chandu0501 Chandu0501 marked this pull request as ready for review June 9, 2026 17:51
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.

Rename Implementing_auto_completing_features_using_trie.java to follow Java naming conventions

2 participants