Improve naming.

This commit is contained in:
Christian P. MOMON 2013-09-10 18:08:18 +02:00
parent 984a96da07
commit fd327f01d7

View file

@ -36,7 +36,7 @@ public class XMLTools
* @param source
* @return
*/
public String escapeXMLNull(final String source)
public static String escapeNull(final String source)
{
String result;
@ -53,28 +53,6 @@ public class XMLTools
return result;
}
/**
*
* @param source
* @return
*/
public String unescapeXMLNull(final String source)
{
String result;
if (StringUtils.isBlank(source))
{
result = null;
}
else
{
result = StringEscapeUtils.unescapeXml(source);
}
//
return result;
}
/**
*
*
@ -347,4 +325,26 @@ public class XMLTools
//
return result;
}
/**
*
* @param source
* @return
*/
public static String unescapeNull(final String source)
{
String result;
if (StringUtils.isBlank(source))
{
result = null;
}
else
{
result = StringEscapeUtils.unescapeXml(source);
}
//
return result;
}
}