summaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/io/BufferedWriter.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/libjava/java/io/BufferedWriter.java b/libjava/java/io/BufferedWriter.java
index ef12bd56745..371c496c7c3 100644
--- a/libjava/java/io/BufferedWriter.java
+++ b/libjava/java/io/BufferedWriter.java
@@ -160,9 +160,6 @@ public class BufferedWriter extends Writer
*/
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)
@@ -199,9 +196,6 @@ public class BufferedWriter extends Writer
*/
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)