Project
IntelliJ IDEA
Priority
Minor
Type
Bug
Fix versions
No Fix versions
State
Verified
Assignee
Alexey Kudravtsev
Subsystem
Editor. Intention Actions
Affected versions
No Affected versions
Fixed in build
96.1116  
  • Created by   Irina Petrovskaya
    3 years ago (14 Jul 2008 15:25)
  • Updated by   Irina Petrovskaya
    17 months ago (07 Sep 2010 16:01)
  • Jira: IDEADEV-28185
    (history, comments)
 
IDEA-44808 CreateClass intention: for collection items don't insert redundant 'extends Object' extension clause
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
if in the following code the MyClass1 type cannot be resolved, it can be created by intention:

List<MyInterface> list1 = new ArrayList<MyInterface>();
list1.add(new MyClass1());

the class is created with correct type:

public MyClass1 implements MyInterface{}

However, if we use not typed collection:

List list2 = new ArrayList();
list2.add(new MyClass2());

the absent MyClass2 is created as

public MyClass2 extends Object{}



Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments