//
// ========================================================================
-// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// target has no annotations
if ( parameterAnnotations == null || parameterAnnotations.length == 0 )
- {
- LOG.debug("Target has no parameter annotations");
+ {
+ if (LOG.isDebugEnabled())
+ LOG.debug("Target has no parameter annotations");
return constructor.newInstance(arguments);
}
else
if (namedArgMap.containsKey(param.value()))
{
- LOG.debug("placing named {} in position {}", param.value(), count);
+ if (LOG.isDebugEnabled())
+ LOG.debug("placing named {} in position {}", param.value(), count);
swizzled[count] = namedArgMap.get(param.value());
}
else
{
- LOG.debug("placing {} in position {}", arguments[count], count);
+ if (LOG.isDebugEnabled())
+ LOG.debug("placing {} in position {}", arguments[count], count);
swizzled[count] = arguments[count];
}
++count;
}
else
{
- LOG.debug("passing on annotation {}", annotation);
+ if (LOG.isDebugEnabled())
+ LOG.debug("passing on annotation {}", annotation);
}
}
}