goldmansachs/gs-collections

Incorrect example code in GS Collections Reference Guide 1.0.0.pdf

Closed this issue · 1 comments

page 8, Select pattern example for JDK:

List greaterThanFifty = new ArrayList();
for (Integer each : list)
{
if (each.intValue() < 50) // wrong operator, should be greater than 50 not less than
{
greaterThanFifty.add(each);
}
}

Thank you for reporting this issue. We’ve fixed the code example in GS Collections Reference Guide 1.2.0.pdf.