+1 this is better. Paul.
> On May 2, 2018, at 6:54 AM, Claes Redestad <claes.redes...@oracle.com> wrote: > > Hi, > > a small follow-up to JDK-8202184 in line with Peter Levart's suggestion, > where we can avoid > instantiating two different SpeciesData objects, and should avoid creating an > instance of > the Function on each lookup: > > Webrev: http://cr.openjdk.java.net/~redestad/8202548/open.00/ > Bug: https://bugs.openjdk.java.net/browse/JDK-8202548 > > This is a small micro-optimization, as well as granting more freedom to > future newSpeciesData > implementations. > > Thanks! > > /Claes