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

Add support for a @SuppressWarnings

XMLWordPrintable

      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:

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

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

              Created:
              Updated:
              Resolved: