Menu

Look for bean property references

hstoerr
2013-10-22
2013-10-22
  • hstoerr

    hstoerr - 2013-10-22

    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.

     
  • Joerg Spieler

    Joerg Spieler - 2013-10-22
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.