From 3faad9b3574336413166f348ca2438c9a7f7cce1 Mon Sep 17 00:00:00 2001 From: Daniel Trebbien Date: Fri, 28 Jul 2017 19:24:59 -0700 Subject: [PATCH] Use simpler SLF4J API functions Eliminates the need to construct a new (temporary) Object array object. These changes were suggested by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/ --- .../activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java | 2 +- .../main/java/org/apache/activemq/ra/LocalAndXATransaction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java index 4e1f0c50ab..c83e86b6d8 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java @@ -202,7 +202,7 @@ public class MultiKahaDBPersistenceAdapter extends LockableServiceSupport implem } } startAdapter(filteredAdapter.getPersistenceAdapter(), destination.getQualifiedName()); - LOG.debug("destination {} matched persistence adapter {}", new Object[]{destination.getQualifiedName(), filteredAdapter.getPersistenceAdapter()}); + LOG.debug("destination {} matched persistence adapter {}", destination.getQualifiedName(), filteredAdapter.getPersistenceAdapter()); return filteredAdapter.getPersistenceAdapter(); } diff --git a/activemq-ra/src/main/java/org/apache/activemq/ra/LocalAndXATransaction.java b/activemq-ra/src/main/java/org/apache/activemq/ra/LocalAndXATransaction.java index 1dd7423e6a..75d691b1b5 100644 --- a/activemq-ra/src/main/java/org/apache/activemq/ra/LocalAndXATransaction.java +++ b/activemq-ra/src/main/java/org/apache/activemq/ra/LocalAndXATransaction.java @@ -132,7 +132,7 @@ public class LocalAndXATransaction implements XAResource, LocalTransaction { public Xid[] recover(int arg0) throws XAException { Xid[] answer = null; - LOG.trace("{} recover({})", new Object[]{this, arg0}); + LOG.trace("{} recover({})", this, arg0); answer = transactionContext.recover(arg0); LOG.trace("{} recover({}) = {}", new Object[]{this, arg0, answer}); return answer;