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/
This commit is contained in:
Daniel Trebbien 2017-07-28 19:24:59 -07:00 committed by Colm O hEigeartaigh
parent 252dda94a3
commit 3faad9b357
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()); 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(); return filteredAdapter.getPersistenceAdapter();
} }

View File

@ -132,7 +132,7 @@ public class LocalAndXATransaction implements XAResource, LocalTransaction {
public Xid[] recover(int arg0) throws XAException { public Xid[] recover(int arg0) throws XAException {
Xid[] answer = null; Xid[] answer = null;
LOG.trace("{} recover({})", new Object[]{this, arg0}); LOG.trace("{} recover({})", this, arg0);
answer = transactionContext.recover(arg0); answer = transactionContext.recover(arg0);
LOG.trace("{} recover({}) = {}", new Object[]{this, arg0, answer}); LOG.trace("{} recover({}) = {}", new Object[]{this, arg0, answer});
return answer; return answer;