From: Robert Varga Date: Thu, 21 May 2015 09:07:01 +0000 (+0200) Subject: Fix precondition format string X-Git-Tag: release/lithium~11 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=1ef77ad63ab66eed7dd5404301964db8291004b1;hp=25d95eb2be97152d7a459a12caa5e51a79556f58;p=openflowjava.git Fix precondition format string Instead of logging-style placeholders, use String.format() ones. Change-Id: I2cfde7eef0dcf4b906d4760dcedc3fd2f1a14df9 Signed-off-by: Robert Varga --- diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java index ebf2a94d..c9c28c16 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueImpl.java @@ -88,7 +88,7 @@ final class OutboundQueueImpl implements OutboundQueue { } final int ro = reserveOffset; - Preconditions.checkArgument(offset < ro, "Unexpected commit to offset {} reserved {} message {}", offset, ro, message); + Preconditions.checkArgument(offset < ro, "Unexpected commit to offset %s reserved %s message %s", offset, ro, message); final OutboundQueueEntry entry = queue[offset]; entry.commit(message, callback);