diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2013-05-23 18:50:35 +0300 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2013-05-23 18:50:35 +0300 |
commit | b211c26d6c8f51a75d3b64b6092284c3847a3a8a (patch) | |
tree | a51b7d816a27f8db492cf9c44f998e2da8176635 /src/net/java/sip/communicator/impl/packetlogging | |
parent | 24e81b82808681c6b5741b14048ef58c4e665e37 (diff) | |
download | jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.zip jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.gz jitsi-b211c26d6c8f51a75d3b64b6092284c3847a3a8a.tar.bz2 |
Fixes warnings, removes trailing whitespace, adds @Override annotations.
Diffstat (limited to 'src/net/java/sip/communicator/impl/packetlogging')
3 files changed, 17 insertions, 9 deletions
diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingActivator.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingActivator.java index f025a2d..6640120 100644 --- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingActivator.java +++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingActivator.java @@ -17,7 +17,7 @@ import org.osgi.framework.*; * Creates and registers Packet Logging service into OSGi. * Also handles saving and retrieving configuration options for * the service and is used from the configuration form. - * + * * @author Damian Minkov */ public class PacketLoggingActivator @@ -30,7 +30,7 @@ public class PacketLoggingActivator = Logger.getLogger(PacketLoggingActivator.class); /** - * The OSGI bundle context. + * The OSGI bundle context. */ private static BundleContext bundleContext = null; diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java index 3f7e896..f707079 100644 --- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java +++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigurationImpl.java @@ -63,6 +63,7 @@ public class PacketLoggingConfigurationImpl * Change whether packet logging is enabled and save it in configuration. * @param enabled <tt>true</tt> if we enable it. */ + @Override public void setGlobalLoggingEnabled(boolean enabled) { super.setGlobalLoggingEnabled(enabled); @@ -76,6 +77,7 @@ public class PacketLoggingConfigurationImpl * and save it in configuration. * @param enabled <tt>true</tt> if we enable it. */ + @Override public void setSipLoggingEnabled(boolean enabled) { super.setSipLoggingEnabled(enabled); @@ -90,6 +92,7 @@ public class PacketLoggingConfigurationImpl * and save it in configuration. * @param enabled <tt>true</tt> if we enable it. */ + @Override public void setJabberLoggingEnabled(boolean enabled) { super.setJabberLoggingEnabled(enabled); @@ -104,6 +107,7 @@ public class PacketLoggingConfigurationImpl * and save it in configuration. * @param enabled <tt>true</tt> if we enable it. */ + @Override public void setRTPLoggingEnabled(boolean enabled) { super.setRTPLoggingEnabled(enabled); @@ -118,6 +122,7 @@ public class PacketLoggingConfigurationImpl * and save it in configuration. * @param enabled <tt>true</tt> if we enable it. */ + @Override public void setIce4JLoggingEnabled(boolean enabled) { super.setIce4JLoggingEnabled(enabled); @@ -131,6 +136,7 @@ public class PacketLoggingConfigurationImpl * Changes the file size limit. * @param limit the new limit size. */ + @Override public void setLimit(long limit) { super.setLimit(limit); @@ -144,6 +150,7 @@ public class PacketLoggingConfigurationImpl * Changes file count. * @param logfileCount the new file count. */ + @Override public void setLogfileCount(int logfileCount) { super.setLogfileCount(logfileCount); diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java index c22254e..964b6e2 100644 --- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java +++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java @@ -16,7 +16,7 @@ import org.jitsi.service.packetlogging.*; /** * Packet Logging Service implementation dumping logs in * pcap(tcpdump/wireshark) format file. - * + * * @author Damian Minkov */ public class PacketLoggingServiceImpl @@ -44,7 +44,7 @@ public class PacketLoggingServiceImpl private PacketLoggingConfiguration packetLoggingConfiguration = null; /** - * The fake ethernet header we use as template. + * The fake ethernet header we use as template. */ private final static byte[] fakeEthernetHeader = new byte[]{ @@ -55,7 +55,7 @@ public class PacketLoggingServiceImpl }; /** - * The fake ipv4 header we use as template. + * The fake ipv4 header we use as template. */ private final static byte[] ipHeaderTemplate = new byte[]{ @@ -134,7 +134,7 @@ public class PacketLoggingServiceImpl private long dstCount = 1; /** - * A counter watching how much has been written to the file. + * A counter watching how much has been written to the file. */ private long written = 0; @@ -326,7 +326,7 @@ public class PacketLoggingServiceImpl /** * Log a packet with all the required information. - * + * * @param protocol the source protocol that logs this packet. * @param sourceAddress the source address of the packet. * @param sourcePort the source port of the packet. @@ -414,7 +414,7 @@ public class PacketLoggingServiceImpl { // if one of the addresses is ipv4 we are using ipv4, // local udp addresses come as 0.0.0.0.0....0.0.0 when - // ipv6 is enabled in the underlying os + // ipv6 is enabled in the underlying os boolean isIPv4 = packet.sourceAddress.length == 4 || packet.destinationAddress.length == 4; @@ -703,7 +703,7 @@ public class PacketLoggingServiceImpl int packetLength; /** - * Creates a packet with the needed data. + * Creates a packet with the needed data. * @param protocol the source protocol that logs this packet. * @param sourceAddress The source address of the packet. * @param sourcePort The source port of the packet. @@ -762,6 +762,7 @@ public class PacketLoggingServiceImpl * Sends instant messages in separate thread so we don't block * our calling thread. */ + @Override public void run() { stopped = false; |