Fixes warnings.

This commit is contained in:
lubomir.marinov 2014-09-15 23:40:15 +00:00
parent 26c34b25b4
commit 7454ebd7c5
6 changed files with 17 additions and 21 deletions

View File

@ -6,20 +6,19 @@
*/ */
package org.ice4j.ice.harvest; package org.ice4j.ice.harvest;
import java.io.*;
import java.lang.ref.*;
import java.net.*;
import java.nio.channels.*;
import java.util.*;
import java.util.logging.*;
import org.ice4j.*; import org.ice4j.*;
import org.ice4j.attribute.*; import org.ice4j.attribute.*;
import org.ice4j.ice.*; import org.ice4j.ice.*;
import org.ice4j.message.*; import org.ice4j.message.*;
import org.ice4j.socket.*; import org.ice4j.socket.*;
import java.io.*;
import java.lang.ref.*;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;
import java.util.*;
import java.util.logging.*;
/** /**
* A <tt>CandidateHarvester</tt> implementation, which listens on a specified * A <tt>CandidateHarvester</tt> implementation, which listens on a specified
* list of TCP server sockets. On {@link #harvest(org.ice4j.ice.Component)}, a * list of TCP server sockets. On {@link #harvest(org.ice4j.ice.Component)}, a

View File

@ -955,7 +955,6 @@ public class MessageFactory
* *
* @return data indication message * @return data indication message
*/ */
@SuppressWarnings("unused")
public static Indication createDataIndication( public static Indication createDataIndication(
TransportAddress peerAddress, byte[] data, byte[] tranID) TransportAddress peerAddress, byte[] data, byte[] tranID)
{ {

View File

@ -872,8 +872,8 @@ public class DelegatingSocket
false, false,
localAddress.getAddress(), localAddress.getAddress(),
localAddress.getPort()); localAddress.getPort());
// Log RTP losses if > 5%. // Log RTP losses if > 5%.
updateRtpLosses(p); updateRtpLosses(p);
} }
} }

View File

@ -191,7 +191,6 @@ public class BlockingRequestSender
* access point that had not been installed, * access point that had not been installed,
* @throws StunException if message encoding fails, * @throws StunException if message encoding fails,
*/ */
@SuppressWarnings("unused")
public synchronized StunMessageEvent sendRequestAndWaitForResponse( public synchronized StunMessageEvent sendRequestAndWaitForResponse(
Request request, Request request,
TransportAddress serverAddress, TransportAddress serverAddress,

View File

@ -329,13 +329,13 @@ public class ByteFifoBufferTest
int len = Alen + Blen + Clen + Dlen; int len = Alen + Blen + Clen + Dlen;
ByteFifoBuffer fifo = new ByteFifoBuffer(len); ByteFifoBuffer fifo = new ByteFifoBuffer(len);
byte[] A = getWData(Alen); byte[] A = getWData(Alen);
byte[] B = getWData(Blen); /*byte[] B =*/ getWData(Blen);
byte[] C = getWData(Clen); /*byte[] C =*/ getWData(Clen);
byte[] D = getWData(Dlen); /*byte[] D =*/ getWData(Dlen);
byte[] Aread = getWData(Alen); byte[] Aread = getWData(Alen);
byte[] Bread = getWData(Blen); /*byte[] Bread =*/ getWData(Blen);
byte[] Cread = getWData(Clen); /*byte[] Cread =*/ getWData(Clen);
byte[] Dread = getWData(Dlen); /*byte[] Dread =*/ getWData(Dlen);
fifo.writeOffset(A, Alen, 0); fifo.writeOffset(A, Alen, 0);
fifo.consumeWriteBuffer(Alen); fifo.consumeWriteBuffer(Alen);

View File

@ -16,13 +16,12 @@ import java.net.*;
*/ */
public class Signalling public class Signalling
{ {
/** /**
* The socket where we send and receive signalling * The socket where we send and receive signalling
*/ */
private Socket signallingSocket; private final Socket signallingSocket;
private SignallingCallback signallingCallback; private final SignallingCallback signallingCallback;
/** /**
* Creates a signalling instance over the specified socket. * Creates a signalling instance over the specified socket.