mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 20:43:18 +00:00
[DS-707] String comparisons
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5563 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -42,6 +42,7 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
@@ -141,7 +142,7 @@ public class SFXFileReader {
|
||||
String sfxfield = "";
|
||||
int i = 0;
|
||||
|
||||
while ((i < len) && (sfxfield == ""))
|
||||
while ((i < len) && StringUtils.isEmpty(sfxfield))
|
||||
{
|
||||
Node nd = nl.item(i);
|
||||
if ((nd == null) || isEmptyTextNode(nd))
|
||||
@@ -211,7 +212,7 @@ public class SFXFileReader {
|
||||
{
|
||||
qualifier = getValue(vn);
|
||||
finish ++;
|
||||
if (qualifier == "")
|
||||
if (StringUtils.isEmpty(qualifier))
|
||||
{
|
||||
qualifier = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user