summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/lang/reflect/Array.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/lang/reflect/Array.java')
-rw-r--r--libjava/classpath/java/lang/reflect/Array.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/libjava/classpath/java/lang/reflect/Array.java b/libjava/classpath/java/lang/reflect/Array.java
index d64e36c3790..a31e48ea6a6 100644
--- a/libjava/classpath/java/lang/reflect/Array.java
+++ b/libjava/classpath/java/lang/reflect/Array.java
@@ -248,7 +248,7 @@ public final class Array
throw new NullPointerException();
throw new IllegalArgumentException();
}
-
+
/**
* Gets an element of a byte array.
*
@@ -422,11 +422,11 @@ public final class Array
{
if (array instanceof Object[])
{
- // Too bad the API won't let us throw the easier ArrayStoreException!
- if (value != null
- && ! array.getClass().getComponentType().isInstance(value))
- throw new IllegalArgumentException();
- ((Object[]) array)[index] = value;
+ // Too bad the API won't let us throw the easier ArrayStoreException!
+ if (value != null
+ && ! array.getClass().getComponentType().isInstance(value))
+ throw new IllegalArgumentException();
+ ((Object[]) array)[index] = value;
}
else if (value instanceof Byte)
setByte(array, index, ((Byte) value).byteValue());
OpenPOWER on IntegriCloud