From c36df364335e9498e5832e7c0663751b544f8c3b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 May 2017 18:34:20 -0400 Subject: [PATCH] clan chat: fix code style --- .../client/plugins/clanchat/ClanChat.java | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChat.java b/runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChat.java index 96b3975e4b..5b9f8d780c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChat.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChat.java @@ -24,44 +24,45 @@ */ package net.runelite.client.plugins.clanchat; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; import net.runelite.api.GameState; import net.runelite.api.widgets.Widget; import net.runelite.api.widgets.WidgetInfo; import net.runelite.client.RuneLite; import net.runelite.client.plugins.Plugin; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.TimeUnit; - public class ClanChat extends Plugin { - private final long INTERVAL = 600; - private ScheduledFuture future; + private final long INTERVAL = 600; + private ScheduledFuture future; - @Override - protected void startUp() throws Exception - { - ScheduledExecutorService executor = RuneLite.getRunelite().getExecutor(); - future = executor.scheduleAtFixedRate(this::updateClanChatTitle, INTERVAL, INTERVAL, TimeUnit.MILLISECONDS); - } + @Override + protected void startUp() throws Exception + { + ScheduledExecutorService executor = RuneLite.getRunelite().getExecutor(); + future = executor.scheduleAtFixedRate(this::updateClanChatTitle, INTERVAL, INTERVAL, TimeUnit.MILLISECONDS); + } - @Override - protected void shutDown() throws Exception - { - future.cancel(true); - } + @Override + protected void shutDown() throws Exception + { + future.cancel(true); + } - private void updateClanChatTitle() - { - if (RuneLite.getClient().getGameState() != GameState.LOGGED_IN) - return; + private void updateClanChatTitle() + { + if (RuneLite.getClient().getGameState() != GameState.LOGGED_IN) + { + return; + } - Widget clanChatTitleWidget = RuneLite.getClient().getWidget(WidgetInfo.CLAN_CHAT_TITLE); - if (clanChatTitleWidget != null) - { - clanChatTitleWidget.setText("Clan Chat (" + RuneLite.getClient().getClanChatCount() + "/100)"); - } - } + Widget clanChatTitleWidget = RuneLite.getClient().getWidget(WidgetInfo.CLAN_CHAT_TITLE); + if (clanChatTitleWidget != null) + { + clanChatTitleWidget.setText("Clan Chat (" + RuneLite.getClient().getClanChatCount() + "/100)"); + } + } }