Project
IntelliJ IDEA
Priority
Major
Type
Feature
Fix versions
No Fix versions
State
Obsolete
Assignee
Anna Kozlova
Subsystem
Editor. Editing Text
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Peter Lawrey
    5 years ago (08 Oct 2006 19:12)
  • Updated by   Anna Kozlova
    17 months ago (27 Aug 2010 22:19)
  • Jira: IDEADEV-14542
    (history, comments)
 
IDEA-34730 When overriding a method not all annotioations need to kept.
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
One annotation which can be dropped is the SuppressWarnings.
If an implmentation in a super class supresses certain warnings there is no reason to assume the overriding method will supress the same warnings.
In fact it preferable that the @SuppressWarnings be dropped.

Environment: Wintel
Comments (1)
 
History
 
Linked Issues (?)
 
Exception Robot
  Exception Robot
06 Feb 2007 16:41
5 years ago
In fact there are two issues here:
1. It is good idea not to keep @SuppressWarnings for inherited methods/classes
2. Why do not we introduce a meta-annotation which will specify this behaviour?