Christian Thalinger wrote:
> +    if (offset + count < 0 || offset + count > ascii.length)

You can write this more efficiently as:

    if (ascii.length - offset < count)

(This assumes that offset and count have previously been checked to be
non-negative.)

Regards,
Jeroen


_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to