Skip to content

Commit

Permalink
Adding java/analyzer comments for Wizards and Warriors (#2334)
Browse files Browse the repository at this point in the history
* Adding analyzer comments for Wizards and Warriors

* Update analyzer-comments/java/wizards-and-warriors/use_override_annotation.md

Co-authored-by: Sander Ploegsma <sanderploegsma@gmail.com>

* Update analyzer-comments/java/wizards-and-warriors/use_override_annotation.md

Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>

---------

Co-authored-by: Sander Ploegsma <sanderploegsma@gmail.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 25, 2024
1 parent c542c5f commit 6c19569
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# use override annotation

Although not strictly necessary, it is a good practice to use the `@Override` annotation when overriding methods from a superclass.

Doing so may help prevent errors; if a method marked with `@Override` fails to correctly override a method in one of its superclasses, the compiler will generate an error.

0 comments on commit 6c19569

Please sign in to comment.