From 8f24990e87f8c36259afff893b89ad82f37dfb09 Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Fri, 8 Aug 2014 10:21:01 +0900 Subject: [PATCH] Fix javadoc. --- .../src/main/java/com/zaxxer/hikari/util/FastList.java | 6 +++--- hikaricp/src/main/java/com/zaxxer/hikari/util/FastList.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hikaricp-java6/src/main/java/com/zaxxer/hikari/util/FastList.java b/hikaricp-java6/src/main/java/com/zaxxer/hikari/util/FastList.java index 3eee58fa..4a1eac00 100644 --- a/hikaricp-java6/src/main/java/com/zaxxer/hikari/util/FastList.java +++ b/hikaricp-java6/src/main/java/com/zaxxer/hikari/util/FastList.java @@ -86,9 +86,9 @@ public final class FastList } /** - * This remove method is most efficient when the element being removed - * is the last element. Equality is identity based, not equals() based. - * Only the first matching element is removed. + * Remove the last element from the list. No bound check is performed, so if this + * method is called on an empty list and ArrayIndexOutOfBounds exception will be + * thrown. * * @return the last element of the list */ diff --git a/hikaricp/src/main/java/com/zaxxer/hikari/util/FastList.java b/hikaricp/src/main/java/com/zaxxer/hikari/util/FastList.java index 3eee58fa..4a1eac00 100644 --- a/hikaricp/src/main/java/com/zaxxer/hikari/util/FastList.java +++ b/hikaricp/src/main/java/com/zaxxer/hikari/util/FastList.java @@ -86,9 +86,9 @@ public final class FastList } /** - * This remove method is most efficient when the element being removed - * is the last element. Equality is identity based, not equals() based. - * Only the first matching element is removed. + * Remove the last element from the list. No bound check is performed, so if this + * method is called on an empty list and ArrayIndexOutOfBounds exception will be + * thrown. * * @return the last element of the list */