redundant bounds checks.
(write (char[], int, int)): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46426
138bc75d-0d04-0410-961f-
82ee72b054a4
* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
duplicate class registration with JvFail if the runtime hasn't been
initialized yet.
+
+ * java/io/BufferedWriter (write (String, int, int)): Remove redundant
+ bounds checks.
+ (write (char[], int, int)): Likewise.
2001-10-22 Tom Tromey <tromey@redhat.com>
*/
public void write (char[] buf, int offset, int len) throws IOException
{
- if (offset < 0 || len < 0 || offset + len > buf.length)
- throw new ArrayIndexOutOfBoundsException ();
-
synchronized (lock)
{
if (buffer == null)
*/
public void write (String str, int offset, int len) throws IOException
{
- if (offset < 0 || len < 0 || offset + len > str.length())
- throw new ArrayIndexOutOfBoundsException ();
-
synchronized (lock)
{
if (buffer == null)