maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject git commit: code simplification
Date Mon, 26 May 2014 19:45:43 GMT
Repository: maven-scm
Updated Branches:
  refs/heads/master f493dfdbd -> c765b737a


code simplification

This closes #13

Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/c765b737
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/c765b737
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/c765b737

Branch: refs/heads/master
Commit: c765b737a973b711805654ef8988ed7a97d532b2
Parents: f493dfd
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Mon May 26 21:45:32 2014 +0200
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Mon May 26 21:45:32 2014 +0200

----------------------------------------------------------------------
 .../maven/scm/provider/tfs/command/TfsCheckInCommand.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/c765b737/maven-scm-providers/maven-scm-provider-tfs/src/main/java/org/apache/maven/scm/provider/tfs/command/TfsCheckInCommand.java
----------------------------------------------------------------------
diff --git a/maven-scm-providers/maven-scm-provider-tfs/src/main/java/org/apache/maven/scm/provider/tfs/command/TfsCheckInCommand.java
b/maven-scm-providers/maven-scm-provider-tfs/src/main/java/org/apache/maven/scm/provider/tfs/command/TfsCheckInCommand.java
index f16a5cc..d36a7ee 100644
--- a/maven-scm-providers/maven-scm-provider-tfs/src/main/java/org/apache/maven/scm/provider/tfs/command/TfsCheckInCommand.java
+++ b/maven-scm-providers/maven-scm-provider-tfs/src/main/java/org/apache/maven/scm/provider/tfs/command/TfsCheckInCommand.java
@@ -28,6 +28,7 @@ import org.apache.maven.scm.provider.ScmProviderRepository;
 import org.apache.maven.scm.provider.tfs.TfsScmProviderRepository;
 import org.apache.maven.scm.provider.tfs.command.consumer.ErrorStreamConsumer;
 import org.apache.maven.scm.provider.tfs.command.consumer.FileListConsumer;
+import org.codehaus.plexus.util.StringUtils;
 
 public class TfsCheckInCommand
     extends AbstractCheckInCommand
@@ -52,9 +53,9 @@ public class TfsCheckInCommand
     {
         TfsCommand command = new TfsCommand( "checkin", r, f, getLogger() );
         command.addArgument( "-noprompt" );
-        if ( m != null && !m.equals( "" ) )
+        if ( StringUtils.isNotBlank( m ) )
         {
-            command.addArgument( "-comment:" + m + "" );
+            command.addArgument( "-comment:" + m );
         }
         command.addArgument( f );
 


Mime
View raw message