Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ignored test for jdt.ui issue 120 #122

Closed
wants to merge 2 commits into from

Conversation

carstenartur
Copy link
Contributor

tbd fix ignore test case provided in
#120

private static <K, V> List<V> method(Map<K, List<V>> map) {
	List<V> results = new ArrayList<>();
	Iterator<List<V>> iterator = map.values().iterator();
	while (iterator.hasNext()) {
		results.addAll(iterator.next());
	}
	return results;
}

What it does

Should allow the code above to be processed using "Only if loop variable used" option

image

How to test

Test the code shown above from issue 120

Author checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant