From 783281ca2c36d5c0064ecfc17e702aa40a7c7a38 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Thu, 13 Sep 2012 21:08:31 +0200 Subject: [PATCH] Made "metrics" invisible. No point polluting the namespace. --- .../src/com/comphenix/protocol/ProtocolManager.java | 2 +- .../src/com/comphenix/protocol/events/PacketListener.java | 5 ++++- .../src/com/comphenix/protocol/metrics/Metrics.java | 2 +- .../src/com/comphenix/protocol/metrics/Statistics.java | 8 -------- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java b/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java index 22d64f31..9f941bc7 100644 --- a/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java +++ b/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java @@ -125,7 +125,7 @@ public interface ProtocolManager { public Set getPacketFilters(); /** - * Determines whether or not is protocol mananger has been disabled. + * Determines whether or not this protocol mananger has been disabled. * @return TRUE if it has, FALSE otherwise. */ public boolean isClosed(); diff --git a/ProtocolLib/src/com/comphenix/protocol/events/PacketListener.java b/ProtocolLib/src/com/comphenix/protocol/events/PacketListener.java index d2fe250a..e263d15b 100644 --- a/ProtocolLib/src/com/comphenix/protocol/events/PacketListener.java +++ b/ProtocolLib/src/com/comphenix/protocol/events/PacketListener.java @@ -21,7 +21,10 @@ import java.util.Set; import org.bukkit.plugin.Plugin; - +/** + * Represents a listener that recieves notifications when packets are sent or recieved. + * @author Kristian + */ public interface PacketListener { /** diff --git a/ProtocolLib/src/com/comphenix/protocol/metrics/Metrics.java b/ProtocolLib/src/com/comphenix/protocol/metrics/Metrics.java index 3caca550..8f904bfa 100644 --- a/ProtocolLib/src/com/comphenix/protocol/metrics/Metrics.java +++ b/ProtocolLib/src/com/comphenix/protocol/metrics/Metrics.java @@ -82,7 +82,7 @@ import java.util.logging.Level; * void start();
* */ -public class Metrics { +class Metrics { /** * The current revision number diff --git a/ProtocolLib/src/com/comphenix/protocol/metrics/Statistics.java b/ProtocolLib/src/com/comphenix/protocol/metrics/Statistics.java index b41bf305..ea541d73 100644 --- a/ProtocolLib/src/com/comphenix/protocol/metrics/Statistics.java +++ b/ProtocolLib/src/com/comphenix/protocol/metrics/Statistics.java @@ -78,12 +78,4 @@ public class Statistics { return users; } - - /** - * Retrieve the current metrics object. - * @return Metrics object. - */ - public Metrics getMetrics() { - return metrics; - } }