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

Key: IDEABKL-4408
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Jonas Kvarnstrom
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

"Class/method can be final" highlighting in editor

Created: 16 Nov 05 19:00   Updated: 09 Nov 06 20:27
Component/s: Code Analysis. Inspection
Affects Version/s: None
Fix Version/s: None

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

Build: 3,542
Severity: Low


 Description  « Hide
The "declaration can be final" inspection only works in batch mode. This is presumably because that inspection used to be too expensive to carry out on thef ly. However, the current version of IDEA already calculates on the fly whether a class has subclasses and whether a method is overridden, in order to determine whether the override icon should be shown in the gutter. This part of the inspection could therefore be available on the fly with little extra cost.

(I assume "Field can be final" is still too expensive to calculate on the fly.)



 All   Comments   Work Log   Change History      Sort Order:
Dave Griffith - 21 Nov 05 16:15
For private fields, "Field should be final" shouldn't be too expensive. No more than things like "Mismatched query and update of collection", which isn't notably CPU-hungry.