Please review at your convenience. Issue: https://bugs.openjdk.java.net/browse/JDK-8135091 Webrev: http://cr.openjdk.java.net/~bpb/8135091/webrev.00/ Summary: In lines() add zero length case and rearrange first loop to avoid duplicate cases. Thanks, Brian