Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37403

Add a convenience static method for getting @Symbol values off an object

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • structs-plugin
    • None

      It'd be convenient to have something on SymbolLookup that would take an object, get its class, get the @Symbol annotation on that class if it exists, and either return the value (if it exists and isn't null) or null. I've found myself writing this code in a few places already, so centralizing it seems wise.

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: