This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b24072  Remove the parens in the error message in CircularFifoQueue 
(#107)
6b24072 is described below

commit 6b2407207443aa3679a417535b173b697ce9ab54
Author: dota17 <50514813+dot...@users.noreply.github.com>
AuthorDate: Fri Nov 1 23:44:23 2019 +0800

    Remove the parens in the error message in CircularFifoQueue (#107)
---
 .../java/org/apache/commons/collections4/queue/CircularFifoQueue.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java 
b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
index f2bef6c..d74288d 100644
--- a/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
@@ -267,7 +267,7 @@ public class CircularFifoQueue<E> extends 
AbstractCollection<E>
         final int sz = size();
         if (index < 0 || index >= sz) {
             throw new NoSuchElementException(
-                    String.format("The specified index (%1$d) is outside the 
available range [0, %2$d)",
+                    String.format("The specified index %1$d is outside the 
available range [0, %2$d)",
                                   Integer.valueOf(index), 
Integer.valueOf(sz)));
         }
 

Reply via email to