raymond-jgler / java-class-jacksonizer

A tool to bulk annotate existing constructor with given annotations, or to add a default constructor to Java classes if without.
MIT License
3 stars 0 forks source link

May Need To Apply Trie Logic To Ensure No Close Match Pollutes The Search #11

Closed raymond-jgler closed 10 months ago

raymond-jgler commented 11 months ago

Issue description

Supposed the Java class's import region :

import java.util.Collections;

Then based on this class's parent's param list, it needs to add java.util.Collections to its import region, but the import java.util.Collection; is a close match of java.util.Collections then it won't add.

example issue img:

image
raymond-jgler commented 11 months ago

Reproducible on this branch : initial-tests

raymond-jgler commented 10 months ago

Fixed in pull #18