Fixes warnings.

This commit is contained in:
lubomir.marinov 2014-02-18 06:41:34 +00:00
parent 0278d355f9
commit e597dac9e6
8 changed files with 15 additions and 21 deletions

View File

@ -6,7 +6,6 @@
*/ */
package org.ice4j; package org.ice4j;
import java.net.*;
import java.util.*; import java.util.*;
import junit.framework.*; import junit.framework.*;

View File

@ -1,9 +1,6 @@
package org.ice4j.pseudotcp; package org.ice4j.pseudotcp;
import junit.framework.*; import junit.framework.*;
import java.lang.Thread.*;
import static org.junit.Assert.*;
/** /**
* This class enables multi thread tests where main thread waits in loop * This class enables multi thread tests where main thread waits in loop
@ -18,7 +15,7 @@ import static org.junit.Assert.*;
*/ */
public class MultiThreadSupportTest public class MultiThreadSupportTest
extends TestCase extends TestCase
implements UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler
{ {
private volatile Throwable testError; private volatile Throwable testError;
private volatile Thread errorThread; private volatile Thread errorThread;

View File

@ -7,11 +7,11 @@
*/ */
package org.ice4j.pseudotcp; package org.ice4j.pseudotcp;
import static org.junit.Assert.*;
import java.io.*; import java.io.*;
import java.net.*; import java.net.*;
import java.util.logging.*; import java.util.logging.*;
import static org.junit.Assert.*;
import org.junit.*;
/** /**
* *

View File

@ -10,7 +10,6 @@ package org.ice4j.pseudotcp;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
import java.util.logging.*; import java.util.logging.*;
import org.ice4j.pseudotcp.util.*;
/** /**
* Base class for other pseduoTCP logic tests. Runs all threads required for the * Base class for other pseduoTCP logic tests. Runs all threads required for the
@ -20,7 +19,8 @@ import org.ice4j.pseudotcp.util.*;
* *
* @author Pawel Domas * @author Pawel Domas
*/ */
public abstract class PseudoTcpTestBase extends MultiThreadSupportTest public abstract class PseudoTcpTestBase
extends MultiThreadSupportTest
implements PseudoTcpNotify implements PseudoTcpNotify
{ {
/** /**

View File

@ -9,9 +9,8 @@ package org.ice4j.pseudotcp;
import java.io.*; import java.io.*;
import java.util.logging.*; import java.util.logging.*;
import org.ice4j.pseudotcp.util.*; import org.ice4j.pseudotcp.util.*;
import static org.junit.Assert.*;
import org.junit.*;
/** /**
* This class implements test for two way transfers * This class implements test for two way transfers
@ -69,7 +68,7 @@ public class PseudoTcpTestPingPong extends PseudoTcpTestBase
public void doTestPingPong(int size, int iterations) public void doTestPingPong(int size, int iterations)
{ {
Thread.setDefaultUncaughtExceptionHandler(this); Thread.setDefaultUncaughtExceptionHandler(this);
long start, end; long start;
iterationsRemaining = iterations; iterationsRemaining = iterations;
receiver = getRemoteTcp(); receiver = getRemoteTcp();
sender = getLocalTcp(); sender = getLocalTcp();

View File

@ -10,9 +10,8 @@ package org.ice4j.pseudotcp;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
import java.util.logging.*; import java.util.logging.*;
import org.ice4j.pseudotcp.util.*; import org.ice4j.pseudotcp.util.*;
import static org.junit.Assert.*;
import org.junit.*;
/** /**
* Fill the receiver window until it is full, drain it and then fill it with the * Fill the receiver window until it is full, drain it and then fill it with the
@ -57,7 +56,7 @@ public class PseudoTcpTestRecvWindow extends PseudoTcpTestBase
{ {
Thread.setDefaultUncaughtExceptionHandler(this); Thread.setDefaultUncaughtExceptionHandler(this);
testDataSize = size; testDataSize = size;
long start, end, elapsed; long start, elapsed;
send_position = new ArrayList<Integer>(); send_position = new ArrayList<Integer>();
recv_position = new ArrayList<Integer>(); recv_position = new ArrayList<Integer>();
// Create some dummy data // Create some dummy data

View File

@ -7,11 +7,10 @@
*/ */
package org.ice4j.pseudotcp; package org.ice4j.pseudotcp;
import static org.junit.Assert.*;
import java.io.*; import java.io.*;
import java.util.logging.*; import java.util.logging.*;
import org.ice4j.pseudotcp.util.*;
import static org.junit.Assert.*;
import org.junit.*;
/** /**
* Implements one way transfer test * Implements one way transfer test

View File

@ -7,11 +7,12 @@
*/ */
package org.ice4j.pseudotcp.util; package org.ice4j.pseudotcp.util;
import junit.framework.*; import static org.junit.Assert.*;
import java.nio.*; import java.nio.*;
import java.util.*; import java.util.*;
import static org.junit.Assert.*;
import org.junit.*; import junit.framework.*;
/** /**
* *