LunaChat v3.0.8 : Fixed SpotBugs scary markers.

このコミットが含まれているのは:
ucchy committed 2020-08-01 02:30:32 +09:00
1 親 af662bdc23
コミット 9407fe942e
2ファイル変更
+7 -3

検索条件に一致するファイルはありません

+2 -1
ファイルの表示
@@ -906,8 +906,9 @@ public abstract class Channel {
channel = new BukkitChannel(name);
} else if ( LunaChat.getMode() == LunaChatMode.BUNGEE ) {
channel = new BungeeChannel(name);
} else {
channel = new StandaloneChannel(name);
}
// TODO Standalone のチャンネル作成
channel.alias = castWithDefault(data.get(KEY_ALIAS), "");
channel.description = castWithDefault(data.get(KEY_DESC), "");
+5 -2
ファイルの表示
@@ -82,6 +82,9 @@ public class LogCommand extends LunaChatSubCommand {
String argsDate = null;
boolean reverse = false;
// senderがnullなら何もしない
if ( sender == null ) return true;
int index = 1;
if ( args.length >= 2 && !args[1].contains("=")) {
cname = args[1];
@@ -101,7 +104,7 @@ public class LogCommand extends LunaChatSubCommand {
}
}
if ( sender != null && cname == null ) {
if ( cname == null ) {
Channel def = api.getDefaultChannel(sender.getName());
if ( def != null ) {
cname = def.getName();
@@ -138,7 +141,7 @@ public class LogCommand extends LunaChatSubCommand {
}
// BANされていないかどうか確認する
if ( sender != null && channel.getBanned().contains(sender) ) {
if ( channel.getBanned().contains(sender) ) {
sender.sendMessage(Messages.errmsgBanned());
return true;
}