Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Override && {@inheritDoc}

 
Jakub Drzazga
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should we use "@Override" and "{@inheritDoc}" ??
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're overriding a method of a superclass, use @Override. If you're implementing the method of an interface and want to "copy" the JavaDoc from the interface to the class implementing it, use {@inheritDoc}.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic