• Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • tools

      Joe Darcy has suggested some code cleanups in the annotation processing area of jdeprscan, particularly in LoadProc.java. (These might also apply to TraverseProc.java.)

      * Use javax.lang.model.util.ElementFilter instead of manual filtering.

      * Instead of a switch on ElementKind, use javax.lang.model.util.ElementKindVisitor9.

      * If an Element isn't a field, the code assumes it's a method or constructor, and casts it to ExecutableElement. This is javac-specific. Getting the kind and using a visitor is more robust.

            smarks Stuart Marks
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: