}
if ( subNamespaces.size() != 1 )
{
- if ( log.isDebugEnabled() )
- {
- log.debug( n + " is not collapsible as it has sub-namespaces: " + subNamespaces );
- }
+ log.debug( "{} is not collapsible as it has sub-namespaces: {}", n, subNamespaces );
return n;
}
else
Collection<String> projects = metadataResolver.resolveProjects( repositorySession, repoId, n );
if ( projects != null && !projects.isEmpty() )
{
- if ( log.isDebugEnabled() )
- {
- log.debug( n + " is not collapsible as it has projects" );
- }
+ log.debug( "{} is not collapsible as it has projects", n );
return n;
}
}
{
String msg =
"Content Header length was " + expectedContentLength + " but was " + actualContentLength;
- log.debug( "Upload failed: " + msg );
+ log.debug( "Upload failed: {}", msg );
FileUtils.deleteQuietly( localFile );
throw new DavException( HttpServletResponse.SC_BAD_REQUEST, msg );