+1 I don't think it will have any measurable effect but it looks tidier anyway.
Hannes Am 2016-01-28 um 10:49 schrieb Michael Haupt:
Dear all, please review this change by Srinivas Dama, which I'm sponsoring. Bug: https://bugs.openjdk.java.net/browse/JDK-8147591 Webrev: http://cr.openjdk.java.net/~mhaupt/8147591/webrev.00 The change adopts the Collection.toArray(new T[0]) idiom consistently throughout the Nashorn code base. Best, Michael