This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: PR 21372 (FileChannel.tryLock())
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Overholt <overholt at redhat dot com>
- Cc: classpath-patches at gnu dot org, java-patches at gcc dot gnu dot org
- Date: 04 May 2005 14:53:56 -0600
- Subject: Re: Patch: PR 21372 (FileChannel.tryLock())
- References: <20050503214330.GB7241@redhat.com><20050504005001.GA5902@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "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