Why jdk code style uses a variable assignment and read on the same line – eg. (i=2) < max

As already mentioned in the comment: Doug Lea, who is one of the main authors of the collections framework and the concurrency packages, tends to do optimizations that may look confusing (or even counterintuitive) for mere mortals. A “famous” example here is copying fields to local variables in order to minimize the size of the … Read more