Details

    • Type: API
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Fix Version/s: 6.2.x
    • Component/s: Core Infrastructure
    • Labels:
      None

      Description

      Java 1.6 lets you use the @Override annotation for method implementations, in addition to method overrides. Java 1.5 only allowed @Override for method overrides. Since Liferay Portal 6.2 base code compliance is Java 1.6, we can now use @Override for method implementations. By using the @Override annotation in this way, we can catch method name/signature typos at compile time; plus the annotation makes it clear that the method indeed implements or overrides.

      Please test that the JavadocFormatter inserts the annotation in the following scenarios ...
      1. method implements method of parent interface
      2. method implements method of parent abstract class
      3. method overrides method of parent regular class
      4. method overrides method of grandparent regular class

        Attachments

        1. @Override-insertion-testing.ods
          33 kB
        2. Abstract.java
          0.2 kB
        3. Base.java
          0.6 kB
        4. GrandParent.java
          0.2 kB
        5. Interface.java
          0.2 kB
        6. Parent.java
          0.3 kB

          Issue Links

            Activity

              People

              Assignee:
              james.hinkey James Hinkey
              Reporter:
              james.hinkey James Hinkey
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support

                    Packages

                    Version Package
                    6.2.x