Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6329722

Warning for overriding methods not using @Override annotation

XMLWordPrintable

    • generic
    • generic

      It should be possible to get a warning for overriding methods
      without the @Override annotation. For example:

      class Super { void foo() {} }
      class Sub1 extends Super { void foo() {} } // warning
      class Sub2 extends Super { @Override foo() {} } // no warning

            Unassigned Unassigned
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: