From d9ca9c62cbcc6479240990e31355b88d653ce90f Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Fri, 28 Dec 2012 04:54:13 +0800 Subject: [PATCH] Closed a possible resource leak, updated README.md to point to DBO instead of Github's deprecated downloads section --- README.md | 2 +- .../massivecraft/factions/integration/EssentialsFeatures.java | 1 - src/com/massivecraft/factions/zcore/util/DiscUtil.java | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22ee9866..50aeeffb 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Usage Installing ---------- -1. Download the latest release: [https://github.com/MassiveCraft/Factions/downloads](https://github.com/MassiveCraft/Factions/downloads)
+1. Download the latest release: [http://dev.bukkit.org/server-mods/factions/](http://dev.bukkit.org/server-mods/factions/)
1. Put Factions.jar in the plugins folder. A default config file will be created on the first run. diff --git a/src/com/massivecraft/factions/integration/EssentialsFeatures.java b/src/com/massivecraft/factions/integration/EssentialsFeatures.java index 25058292..b199fd06 100644 --- a/src/com/massivecraft/factions/integration/EssentialsFeatures.java +++ b/src/com/massivecraft/factions/integration/EssentialsFeatures.java @@ -115,7 +115,6 @@ public class EssentialsFeatures private static class LocalChatListener implements Listener { - @SuppressWarnings("unused") @EventHandler(priority = EventPriority.NORMAL) public void onPlayerChat(EssentialsLocalChatEvent event) { diff --git a/src/com/massivecraft/factions/zcore/util/DiscUtil.java b/src/com/massivecraft/factions/zcore/util/DiscUtil.java index b9ecc0a6..09ed9bc0 100644 --- a/src/com/massivecraft/factions/zcore/util/DiscUtil.java +++ b/src/com/massivecraft/factions/zcore/util/DiscUtil.java @@ -94,6 +94,7 @@ public class DiscUtil ReadableByteChannel rbc = Channels.newChannel(url.openStream()); FileOutputStream fos = new FileOutputStream(file); fos.getChannel().transferFrom(rbc, 0, 1 << 24); + fos.close(); return true; } catch (Exception e)