History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5972
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Bas Leijdekkers
Reporter: Sergei Ivanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Convert class to interface" may break code

Created: 15 May 06 14:04   Updated: 15 May 06 18:41
Component/s: Code Analysis. Inspection
Fix Version/s: Demetra 5281

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,192
Fixed in build: 5,276
Severity: Low


 Description  « Hide
BEFORE:
public class A {
    public static final class B {
        public static final String X = "X";
        public static final String Y = "Y";
        public static final String Z = "Z";
    }
}

ACTION:
Run intention action to convert B to an interface.

AFTER:

public class A {
    public static final interface B {
//------------^^^^^-- final is an invalid modifier for interfaces
        public static final String X = "X";
        public static final String Y = "Y";
        public static final String Z = "Z";
    }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.