Bug 190965 - [compiler] useless assignment to local variable parameters in Scope line 431
Summary: [compiler] useless assignment to local variable parameters in Scope line 431
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: 3.4 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 03:01 EDT by Maxime Daniel CLA
Modified: 2007-08-03 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Daniel CLA 2007-06-05 03:01:31 EDT
Source based, v_769.
I can see no code path that would read 'parameters' after it is assigned on line 431. I suspect this is due to changes in other parts of the method (aka, the assignment was useful at some point in time). Most obvious fix would be to remove the line altogether, if it does not reveal any problem downstream (I mean, if the remainder of the code is right not to use parameters instead of another local/member).
Comment 1 Kent Johnson CLA 2007-06-28 12:36:22 EDT
Removed the assignment
Comment 2 Frederic Fusier CLA 2007-08-03 10:28:30 EDT
Verified (with v_804 code) for 3.4M1 using build I20070802-0800.