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/

(cherry picked from commit 3faad9b3574336413166f348ca2438c9a7f7cce1)
This commit is contained in:
Daniel Trebbien 2017-07-28 19:24:59 -07:00 committed by jbonofre
parent ab032655e1
commit f556247646
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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;