Details

    • Type: Sub-task
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: