Bug 197872

Summary: [quick assist] Join variable declarations should ignore side-effect free assignments
Product: [Eclipse Project] JDT Reporter: Daniel Aborg <eclipse.daniel.aborg>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: deepakazad
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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: