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

Key: IDEABKL-4409
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Dmitry Kashin
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

"Close battle" Duplicate locations

Created: 15 Dec 05 13:38   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: 4,000
Severity: High


 Description  « Hide
It would be very good if for next code:
if (a.getB() != null && a.getB().longValue()>0) {
List aa = getC(a.getB, e);

a.getB was detected like duplication and warning will be available, it may be as light as possible version of code duplication detector, in enclosing 2 or 3 lines. I think it may be easy added.

Bas? David? Do you hear this?



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Kashin - 15 Dec 05 13:46
It would be very good if for next code:
"Smell source"
if (a.getB() != null && a.getB().longValue()>0) {
    List aa = getC(a.getB, e);

a.getB was detected like duplication and warning will be available, it may be as light as possible version of code duplication detector, in enclosing 2 or 3 lines. I think it may be easy added.

"Markup rulezz"

Bas? David? Do you hear this?


Maxim Shafirov - 23 Dec 05 02:29
This is not as easy as it seems. To make a suggestion like this one has to ensure getB() doesn't have a side effect so replacing 3 calls with one won't change the semantics.