michael-o commented on a change in pull request #83: sonar: Use 
"Arrays.toString(array)" instead
URL: https://github.com/apache/maven-scm/pull/83#discussion_r209740790
 
 

 ##########
 File path: 
maven-scm-providers/maven-scm-provider-integrity/src/main/java/org/apache/maven/scm/provider/integrity/command/diff/IntegrityDiffCommand.java
 ##########
 @@ -75,15 +75,17 @@ public DiffScmResult executeDiffCommand( 
ScmProviderRepository repository, ScmFi
         shell.createArg().setValue( "--filter=changed:all" );
         shell.createArg().setValue( "--filter=format:text" );
         IntegrityDiffConsumer shellConsumer = new IntegrityDiffConsumer( 
getLogger() );
+        String commandLine = CommandLineUtils.toString( shell.getCommandline() 
);
 
         try
         {
-            getLogger().debug( "Executing: " + shell.getCommandline() );
+            if ( getLogger().isDebugEnabled() ) {
 
 Review comment:
   Same here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to