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

Improve quick fixes for @HttpMethod validation errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Beta1
    • 4.0.0.Alpha1
    • webservices
    • None

      If I have this annotation:

      @HttpMethod(value = "METHOD")
      public @interface MyAnnot {
      
      }
      

      there are two errors in markers view:

      • The HTTP Method should have a @Retention(RetentionPolicy.RUNTIME) annotation on its type.
      • The HTTP Method should have a @Target(ElementType.METHOD) annotation on its type.

      For @Target marker there is quick fix providing adding @Target annotation into class. However there is no such quick fix for @Retention marker, only "Configure Problem Severity" is offered. There should be definitely similar quick fix as for @Target marker.

            xcoulon@redhat.com Xavier Coulon
            jjankovi Jaroslav Jankovič (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: