| 1 |
// Test case that was submitted in Issue 404, but was combined with Issue 979 |
| 2 |
// https://github.com/typetools/checker-framework/issues/979 |
| 3 |
|
| 4 |
// @skip-test until the bug is fixed |
| 5 |
|
| 6 |
import java.util.Collection; |
| 7 |
import java.util.Set; |
| 8 |
import java.util.stream.Collectors; |
| 9 |
|
| 10 |
// TODO: inference problem with dependencies between multiple methods. |
| 11 |
// Eventually, the test should work when executed on >= Java 8. |
| 12 |
// @skip-test |
| 13 |
public final class Issue404 { |
| 14 |
public Set<String> uniqueTrimmed(final Collection<String> strings) { |
| 15 |
return strings.stream().map(String::trim).collect(Collectors.toSet()); |
| 16 |
} |
| 17 |
} |