org.apache.commons.lang.StringUtilsorg.codehaus.groovy.grails.commons.GrailsStringUtils



Project grails/grails-core in file ...web.src.main.groovy.grails.util.GrailsWebUtil.java (2014-02-27)
@@ -25,8 +25,8 @@ import java.util.regex.Pattern;
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 
-import org.apache.commons.lang.StringUtils;
 import org.codehaus.groovy.grails.commons.GrailsApplication;
+import org.codehaus.groovy.grails.commons.GrailsStringUtils;
 import org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes;
 import org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest;
 import org.codehaus.groovy.grails.web.servlet.mvc.ParameterCreationListener;
@@ -190,7 +190,7 @@ public class GrailsWebUtil {
         if (name.indexOf(';') > -1 && CHARSET_IN_CONTENT_TYPE_REGEXP.matcher(name).find()) {
             return name;
         }
-        if (StringUtils.isBlank(encoding)) encoding = DEFAULT_ENCODING;
+        if (GrailsStringUtils.isBlank(encoding)) encoding = DEFAULT_ENCODING;
         return name + CHARSET_ATTRIBUTE + encoding;
     }
 }
Project grails/grails-core in file ...haus.groovy.grails.web.binding.CurrencyEditor.java (2014-02-27)
@@ -18,7 +18,7 @@ package org.codehaus.groovy.grails.web.binding;
 import java.beans.PropertyEditorSupport;
 import java.util.Currency;
 
-import org.apache.commons.lang.StringUtils;
+import org.codehaus.groovy.grails.commons.GrailsStringUtils;
 
 /**
  * A Property editor for converting instances of java.util.Currency.
@@ -29,7 +29,7 @@ public class CurrencyEditor extends PropertyEditorSupport {
 
     @Override
     public void setAsText(String text) throws IllegalArgumentException {
-        if (StringUtils.isBlank(text)) {
+        if (GrailsStringUtils.isBlank(text)) {
             setValue(null);
         }
         try {
Project grails/grails-core in file ...haus.groovy.grails.web.binding.TimeZoneEditor.java (2014-02-27)
@@ -15,10 +15,11 @@
  */
 package org.codehaus.groovy.grails.web.binding;
 
+import org.codehaus.groovy.grails.commons.GrailsStringUtils;
+
 import java.beans.PropertyEditorSupport;
 import java.util.TimeZone;
 
-import org.apache.commons.lang.StringUtils;
 
 /**
  * A Property editor for converting instances of java.util.TimeZone.
@@ -29,7 +30,7 @@ public class TimeZoneEditor extends PropertyEditorSupport {
 
     @Override
     public void setAsText(String text) throws IllegalArgumentException {
-        if (StringUtils.isBlank(text)) {
+        if (GrailsStringUtils.isBlank(text)) {
             setValue(null);
         }
         try {
Project grails/grails-core in file ...ovy.grails.web.mapping.AbstractUrlMappingInfo.java (2014-02-27)
@@ -26,7 +26,7 @@ import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 
-import org.apache.commons.lang.StringUtils;
+import org.codehaus.groovy.grails.commons.GrailsStringUtils;
 import org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest;
 import org.codehaus.groovy.runtime.DefaultGroovyMethods;
 import org.springframework.web.context.request.RequestContextHolder;
@@ -107,7 +107,7 @@ public abstract class AbstractUrlMappingInfo implements UrlMappingInfo{
         }
 
         String id = getId();
-        if (!StringUtils.isBlank(id)) try {
+        if (!GrailsStringUtils.isBlank(id)) try {
             dispatchParams.put(GrailsWebRequest.ID_PARAMETER, URLDecoder.decode(id, encoding));
         }
         catch (UnsupportedEncodingException e) {
Project grails/grails-core in file ...rg.codehaus.groovy.grails.web.pages.GSPWriter.java (2014-02-27)
@@ -15,11 +15,12 @@
  */
 package org.codehaus.groovy.grails.web.pages;
 
+import org.codehaus.groovy.grails.commons.GrailsStringUtils;
+
 import java.io.PrintWriter;
 import java.io.Writer;
 import java.lang.reflect.Array;
 
-import org.apache.commons.lang.StringUtils;
 
 /**
  * A PrintWriter used in the generation of GSP pages that allows printing to the target output
@@ -49,7 +50,7 @@ public class GSPWriter extends PrintWriter {
     }
 
     public void printlnToResponse(String outVarName, String s) {
-        if (StringUtils.isEmpty(s)) {
+        if (GrailsStringUtils.isEmpty(s)) {
             return;
         }