Patch: PR 21372 (FileChannel.tryLock())
Tom Tromey
tromey@redhat.com
Wed May 4 20:56:00 GMT 2005
>>>>> "Andrew" == Andrew Overholt <overholt@redhat.com> writes:
Andrew> Sorry for the spam, but here's an updated version of the toString
Andrew> re-implementation (what I intended to send the first time) that uses
Andrew> StringBuffer.
Actually, one little nit:
Andrew> + StringBuffer buf = new StringBuffer(getClass().getName());
Andrew> + buf.append("[" + position + ":" + size);
It is better to avoid '+' here if you really want to get the benefits
of StringBuffer. I'll make that change.
Tom
More information about the Java-patches
mailing list