From 6b2407207443aa3679a417535b173b697ce9ab54 Mon Sep 17 00:00:00 2001 From: dota17 <50514813+dota17@users.noreply.github.com> Date: Fri, 1 Nov 2019 23:44:23 +0800 Subject: [PATCH] Remove the parens in the error message in CircularFifoQueue (#107) --- .../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 f2bef6c89..d74288deb 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 extends AbstractCollection 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))); }