Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10187

Add support for a @SuppressWarnings

    XMLWordPrintable

Details

    Description

      Would be nice to place a

      @SuppressWarning("ambigiousinjection") or similar on an injection point that tooling can't figure out.

      UPDATE:
      There is a few examples of @SuppressWarning:
      1. @SuppressWarning("all") - suppresses all the validation warnings for the java element and its children.
      2. @SuppressWarning("cdi") - suppresses all the CDI validation warnings.
      3. @SuppressWarning("seam") - suppresses all the Seam 2 validation warnings.
      4. @SuppressWarning("cdi-ambiguous-dependency") - suppresses warnings for ambiguous and unsatisfied dependencies in @Inject.

      Each validation warning should have a quick fix which adds the corresponding @SuppressWarning:

      Attachments

        1. Add_@SuppressWarnings.png
          Add_@SuppressWarnings.png
          33 kB
        2. Add_@SuppressWarnings2.png
          Add_@SuppressWarnings2.png
          31 kB
        3. Add_@SuppressWarnings2.png
          Add_@SuppressWarnings2.png
          31 kB
        4. Add_@SuppressWarnings3.png
          Add_@SuppressWarnings3.png
          36 kB
        5. Add_@SuppressWarnings3.png
          Add_@SuppressWarnings3.png
          36 kB
        6. ButtonNameBorrowedFromProject.png
          ButtonNameBorrowedFromProject.png
          32 kB
        7. ManySuggestionsToAddSuppressWarnings.png
          ManySuggestionsToAddSuppressWarnings.png
          300 kB
        8. QF.png
          QF.png
          35 kB

        Issue Links

          Activity

            People

              alexeykazakov Alexey Kazakov
              cody.lerum@gmail.com Cody Lerum
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: