blank() -> isBlank().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -117,12 +117,12 @@ public class IconManager
|
||||
// load it up if not
|
||||
if (set == null) {
|
||||
String path = _config.getProperty(iconSet + PATH_SUFFIX);
|
||||
if (StringUtil.blank(path)) {
|
||||
if (StringUtil.isBlank(path)) {
|
||||
throw new Exception("No path specified for icon set");
|
||||
}
|
||||
|
||||
String metstr = _config.getProperty(iconSet + METRICS_SUFFIX);
|
||||
if (StringUtil.blank(metstr)) {
|
||||
if (StringUtil.isBlank(metstr)) {
|
||||
throw new Exception("No metrics specified for icon set");
|
||||
}
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ public class ImageManager
|
||||
public BufferedImage getImage (String rset, String path,
|
||||
Colorization[] zations)
|
||||
{
|
||||
if (StringUtil.blank(path)) {
|
||||
if (StringUtil.isBlank(path)) {
|
||||
String errmsg = "Invalid image path [rset=" + rset +
|
||||
", path=" + path + "]";
|
||||
throw new IllegalArgumentException(errmsg);
|
||||
|
||||
@@ -548,7 +548,7 @@ public class SoundManager
|
||||
*/
|
||||
protected boolean isTesting ()
|
||||
{
|
||||
return !StringUtil.blank(_testDir.getValue());
|
||||
return !StringUtil.isBlank(_testDir.getValue());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -608,7 +608,7 @@ public class SoundManager
|
||||
protected InputStream getTestClip (SoundKey key)
|
||||
{
|
||||
String testDirectory = _testDir.getValue();
|
||||
if (StringUtil.blank(testDirectory)) {
|
||||
if (StringUtil.isBlank(testDirectory)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,14 +101,14 @@ public abstract class TileSetRuleSet
|
||||
boolean valid = true;
|
||||
|
||||
// check for the 'name' attribute
|
||||
if (StringUtil.blank(set.getName())) {
|
||||
if (StringUtil.isBlank(set.getName())) {
|
||||
Log.warning("Tile set definition missing 'name' attribute " +
|
||||
"[set=" + set + "].");
|
||||
valid = false;
|
||||
}
|
||||
|
||||
// check for an <imagePath> element
|
||||
if (StringUtil.blank(set.getImagePath())) {
|
||||
if (StringUtil.isBlank(set.getImagePath())) {
|
||||
Log.warning("Tile set definition missing <imagePath> element " +
|
||||
"[set=" + set + "].");
|
||||
valid = false;
|
||||
|
||||
Reference in New Issue
Block a user