Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1801 Search and fix minor errors
  3. RA-1807

Modifiers should be declared in the correct order

    XMLWordPrintable

Details

    • Low

    Description

      SonarQube:

      The Java Language Specification recommends listing modifiers in the following order:
      1. Annotations
      2. public
      3. protected
      4. private
      5. abstract
      6. static
      7. final
      8. transient
      9. volatile
      10. synchronized
      11. native
      12. strictfp
      Not following this convention has no technical impact, but will reduce the code's readability because most developers are used to the standard order.

      Problem:
      Wrong order of modifiers.

      Solution:
      Correct order of modifiers.

      Where the problem occurs:

      Support materials:

      Gliffy Diagrams

        Attachments

          Activity

            People

              dkayiwa Daniel Kayiwa
              sacull Lukasz Debicki
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: