Bug 433028 - [1.8][quick assist] Conversion to Streams missing
Summary: [1.8][quick assist] Conversion to Streams missing
Status: CLOSED DUPLICATE of bug 431967
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 12:40 EDT by Jerome Cambon CLA
Modified: 2014-04-18 02:30 EDT (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 Jerome Cambon CLA 2014-04-17 12:40:18 EDT
Consider this code:
		String[] personsArray = { "Fred", "Jane", "Jo", "George" };
		List<String> persons = Arrays.asList(personsArray);

		for (String person : persons) {
			System.out.println(person);
		}

One should get a "Convert to Streams" quick fix when the "for" line is selected, or one have clicked into it.

This should produce:
		persons.stream().forEach((person) -> System.out.println(person));
or
		persons.stream().forEach((person) -> {
			System.out.println(person);
		});
Comment 1 Noopur Gupta CLA 2014-04-18 02:30:23 EDT

*** This bug has been marked as a duplicate of bug 431967 ***