Use static import.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Apr 2014 19:28:05 +0000 (21:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Apr 2014 19:28:05 +0000 (21:28 +0200)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index 24d9c38..d875a5b 100644 (file)
@@ -17,6 +17,7 @@
 
 package net.pterodactylus.xdcc.core;
 
+import static net.pterodactylus.irc.util.MessageCleaner.getDefaultInstance;
 import static net.pterodactylus.xdcc.data.Channel.TO_NETWORK;
 import static net.pterodactylus.xdcc.data.Download.FILTER_RUNNING;
 
@@ -53,7 +54,6 @@ import net.pterodactylus.irc.event.NicknameChanged;
 import net.pterodactylus.irc.event.PrivateMessageReceived;
 import net.pterodactylus.irc.event.PrivateNoticeReceived;
 import net.pterodactylus.irc.event.ReplyReceived;
-import net.pterodactylus.irc.util.MessageCleaner;
 import net.pterodactylus.irc.util.RandomNickname;
 import net.pterodactylus.xdcc.core.event.BotAdded;
 import net.pterodactylus.xdcc.core.event.CoreStarted;
@@ -623,7 +623,7 @@ public class Core extends AbstractExecutionThreadService {
         */
        @Subscribe
        public void channelMessageReceived(ChannelMessageReceived channelMessageReceived) {
-               String message = MessageCleaner.getDefaultInstance().clean(channelMessageReceived.message());
+               String message = getDefaultInstance().clean(channelMessageReceived.message());
                if (!message.startsWith("#")) {
                        /* most probably not a pack announcement. */
                        return;