Commit 50f56162 by andrewlewis Committed by Oliver Woodman

Fix documentation and logging in LongArray.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=120693278
parent c6047033
...@@ -56,11 +56,11 @@ public final class LongArray { ...@@ -56,11 +56,11 @@ public final class LongArray {
* @param index The index. * @param index The index.
* @return The corresponding value. * @return The corresponding value.
* @throws IndexOutOfBoundsException If the index is less than zero, or greater than or equal to * @throws IndexOutOfBoundsException If the index is less than zero, or greater than or equal to
* {@link #size()} * {@link #size()}.
*/ */
public long get(int index) { public long get(int index) {
if (index < 0 || index >= size) { if (index < 0 || index >= size) {
throw new IndexOutOfBoundsException("Invalid size " + index + ", size is " + size); throw new IndexOutOfBoundsException("Invalid index " + index + ", size is " + size);
} }
return values[index]; return values[index];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment