Skip to content
Snippets Groups Projects
Commit 15b73814 authored by felmer's avatar felmer
Browse files

SP-298, BIS-210: fixing compile problem: not using StringUtils

SVN: 26988
parent fcff2f77
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,6 @@
package ch.systemsx.cisd.openbis.generic.shared.basic.dto;
import org.apache.commons.lang.StringUtils;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.api.IManagedInputWidgetDescription;
/**
......@@ -49,7 +47,7 @@ public abstract class ManagedInputWidgetDescription implements IManagedInputWidg
public void setCode(String code)
{
if (StringUtils.isBlank(code))
if (isBlank(code))
{
throw new IllegalArgumentException("Code is null or a blank string.");
}
......@@ -64,7 +62,7 @@ public abstract class ManagedInputWidgetDescription implements IManagedInputWidg
public void setLabel(String label)
{
if (StringUtils.isBlank(label))
if (isBlank(label))
{
throw new IllegalArgumentException("Label is null or a blank string.");
}
......@@ -75,6 +73,11 @@ public abstract class ManagedInputWidgetDescription implements IManagedInputWidg
}
}
private boolean isBlank(String string)
{
return string == null || string.trim().length() == 0;
}
@Override
public String getValue()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment