Since I can't create a feature request, a suggestion here.
When looking for unused bean properties it would be helpful if UCDetector could optionally look for occurrences of the bean property without the get prefix in e.g. JSP files or other expression languages. I do realize that that would mark common properties like name and id as used, but this might help if the bean properties are named descriptively.
More specifically: the Method FooBean.getSomethingNicelyNamed() would be counted as referenced if there is a String somethingNicelyNamed in *.jsp. Probably this feature would need a configuration of the file types recognized as expression language. It might be worth looking at the character(s) before and after the String - these should be word separators, e.g. ", ., spaces etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since I can't create a feature request, a suggestion here.
When looking for unused bean properties it would be helpful if UCDetector could optionally look for occurrences of the bean property without the get prefix in e.g. JSP files or other expression languages. I do realize that that would mark common properties like name and id as used, but this might help if the bean properties are named descriptively.
More specifically: the Method FooBean.getSomethingNicelyNamed() would be counted as referenced if there is a String somethingNicelyNamed in *.jsp. Probably this feature would need a configuration of the file types recognized as expression language. It might be worth looking at the character(s) before and after the String - these should be word separators, e.g. ", ., spaces etc.
Copied to Feature Request #42