org.apache.commons.lang.StringUtilscom.intellij.openapi.util.text.StringUtil



Project JetBrains/intellij-community in file ...g.zmlx.hg4idea.action.HgCommandResultNotifier.java (2012-08-10)
@@ -16,13 +16,13 @@ import com.intellij.notification.Notification;
 import com.intellij.notification.NotificationType;
 import com.intellij.notification.Notifications;
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.vcsUtil.VcsImplUtil;
 import com.intellij.vcsUtil.VcsUtil;
-import org.apache.commons.lang.StringUtils;
 import org.jetbrains.annotations.Nullable;
-import org.zmlx.hg4idea.util.HgErrorUtil;
 import org.zmlx.hg4idea.HgVcs;
 import org.zmlx.hg4idea.execution.HgCommandResult;
+import org.zmlx.hg4idea.util.HgErrorUtil;
 
 import java.util.List;
 
@@ -42,7 +42,7 @@ public final class HgCommandResultNotifier {
     }
     if (HgErrorUtil.isAbort(result)) {
       VcsImplUtil.showErrorMessage(
-        myProject, "<html>" + StringUtils.join(err, "<br>") + "</html>", "Error"
+        myProject, "<html>" + StringUtil.join(err, "<br>") + "</html>", "Error"
       );
     } else if (successTitle != null && successDescription != null) {
       Notifications.Bus.notify(new Notification(HgVcs.NOTIFICATION_GROUP_ID, successTitle, successDescription, NotificationType.INFORMATION), myProject);
Project JetBrains/intellij-community in file ...dea.src.org.zmlx.hg4idea.command.HgCatCommand.java (2012-08-10)
@@ -13,7 +13,7 @@
 package org.zmlx.hg4idea.command;
 
 import com.intellij.openapi.project.Project;
-import org.apache.commons.lang.StringUtils;
+import com.intellij.openapi.util.text.StringUtil;
 import org.jetbrains.annotations.Nullable;
 import org.zmlx.hg4idea.HgFile;
 import org.zmlx.hg4idea.HgRevisionNumber;
@@ -55,7 +55,7 @@ public class HgCatCommand {
     final List<String> arguments = new LinkedList<String>();
     if (vcsRevisionNumber != null) {
       arguments.add("--rev");
-      if (StringUtils.isNotBlank(vcsRevisionNumber.getChangeset())) {
+      if (!StringUtil.isEmptyOrSpaces(vcsRevisionNumber.getChangeset())) {
         arguments.add(vcsRevisionNumber.getChangeset());
       } else {
         arguments.add(vcsRevisionNumber.getRevision());
Project JetBrains/intellij-community in file ...a.src.org.zmlx.hg4idea.command.HgHeadsCommand.java (2012-08-10)
@@ -13,8 +13,8 @@
 package org.zmlx.hg4idea.command;
 
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.VirtualFile;
-import org.apache.commons.lang.StringUtils;
 import org.jetbrains.annotations.NotNull;
 import org.zmlx.hg4idea.HgRevisionNumber;
 
@@ -47,7 +47,7 @@ public class HgHeadsCommand {
 
     @Override
     protected void addArguments(List<String> args) {
-      if (StringUtils.isNotEmpty(branch)) {
+      if (!StringUtil.isEmpty(branch)) {
         args.add(branch);
       }
     }
Project JetBrains/intellij-community in file ...ea.src.org.zmlx.hg4idea.command.HgPullCommand.java (2012-08-10)
@@ -14,8 +14,8 @@ package org.zmlx.hg4idea.command;
 
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.VirtualFile;
-import org.apache.commons.lang.StringUtils;
 import org.jetbrains.annotations.NotNull;
 import org.zmlx.hg4idea.HgVcs;
 import org.zmlx.hg4idea.action.HgCommandResultNotifier;
@@ -67,7 +67,7 @@ public class HgPullCommand {
       arguments.add("--rebase");
     }
 
-    if (StringUtils.isNotBlank(revision)) {
+    if (!StringUtil.isEmptyOrSpaces(revision)) {
       arguments.add("--rev");
       arguments.add(revision);
     }
Project JetBrains/intellij-community in file ...ea.src.org.zmlx.hg4idea.command.HgPushCommand.java (2012-08-10)
@@ -13,8 +13,8 @@
 package org.zmlx.hg4idea.command;
 
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.VirtualFile;
-import org.apache.commons.lang.StringUtils;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 import org.zmlx.hg4idea.HgVcs;
@@ -55,7 +55,7 @@ public class HgPushCommand {
 
   public void execute(final HgCommandResultHandler resultHandler) {
     final List<String> arguments = new LinkedList<String>();
-    if (StringUtils.isNotBlank(myRevision)) {
+    if (!StringUtil.isEmptyOrSpaces(myRevision)) {
       arguments.add("-r");
       arguments.add(myRevision);
     }