blank() -> isBlank().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-11-09 04:00:16 +00:00
parent 365634146c
commit 596d2a4708
26 changed files with 51 additions and 51 deletions
@@ -422,7 +422,7 @@ public class ChatDirector extends BasicDirector
// if not a command then just speak
String message = text.trim();
if (StringUtil.blank(message)) {
if (StringUtil.isBlank(message)) {
// report silent failure for now
return ChatCodes.SUCCESS;
}
@@ -673,7 +673,7 @@ public class ChatDirector extends BasicDirector
// note whether or not we have an auto-response
BodyObject self = (BodyObject)
_ctx.getClient().getClientObject();
if (!StringUtil.blank(self.awayMessage)) {
if (!StringUtil.isBlank(self.awayMessage)) {
autoResponse = self.awayMessage;
}
}
@@ -1090,7 +1090,7 @@ public class ChatDirector extends BasicDirector
String hcmd = "";
// grab the command they want help on
if (!StringUtil.blank(args)) {
if (!StringUtil.isBlank(args)) {
hcmd = args;
int sidx = args.indexOf(" ");
if (sidx != -1) {
@@ -1150,7 +1150,7 @@ public class ChatDirector extends BasicDirector
public String handleCommand (
SpeakService speakSvc, String command, String args, String[] history)
{
if (StringUtil.blank(args)) {
if (StringUtil.isBlank(args)) {
return "m.usage_speak";
}
// note the command to be stored in the history
@@ -1165,7 +1165,7 @@ public class ChatDirector extends BasicDirector
public String handleCommand (
SpeakService speakSvc, String command, String args, String[] history)
{
if (StringUtil.blank(args)) {
if (StringUtil.isBlank(args)) {
return "m.usage_emote";
}
// note the command to be stored in the history
@@ -1180,7 +1180,7 @@ public class ChatDirector extends BasicDirector
public String handleCommand (
SpeakService speakSvc, String command, String args, String[] history)
{
if (StringUtil.blank(args)) {
if (StringUtil.isBlank(args)) {
return "m.usage_think";
}
// note the command to be stored in the history
@@ -136,7 +136,7 @@ public class ChatProvider
idle = System.currentTimeMillis() - tobj.statusTime;
}
String awayMessage = null;
if (!StringUtil.blank(tobj.awayMessage)) {
if (!StringUtil.isBlank(tobj.awayMessage)) {
awayMessage = tobj.awayMessage;
}
listener.tellSucceeded(idle, awayMessage);