goldmansachs/gs-collections — Issue #2: Incorrect example code in GS Collections Reference Guide 1.0.0.pdf
Author: sinbadblue
Created: 2012-02-28 20:58:44+00:00
State: open

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);
}
}