Bug 197872 - [quick assist] Join variable declarations should ignore side-effect free assignments
Summary: [quick assist] Join variable declarations should ignore side-effect free assi...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-25 16:22 EDT by Daniel Aborg CLA
Modified: 2010-11-26 05:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Aborg CLA 2007-07-25 16:22:12 EDT
Build ID: I20070621-1340

Steps To Reproduce:
Quick assist should be able to disregard any assignment that is guaranteed to be side-effect free when joining variable assignments.

Quick assist should offer to join the variable declaration for all of these examples:

String s = null;
s = "Hello"

String s = "foo";
s = "Hello"

String s = fieldOrVariable;
s = "Hello"

int i = 32;
i = 17;


More information: