NO-JIRA - Fix some warnings from unused imports and use of deprecated

methods.
This commit is contained in:
Timothy Bish 2015-10-14 12:51:02 -04:00
parent 80b526be7d
commit e8a0d042d8
7 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,6 @@
*/
package org.apache.activemq.transport.amqp;
import java.io.ByteArrayInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;

View File

@ -18,7 +18,6 @@ package org.apache.activemq.transport.amqp.auto;
import java.net.URI;
import org.apache.activemq.transport.amqp.JMSClientNioTest;
import org.apache.activemq.transport.amqp.JMSClientTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -18,7 +18,6 @@ package org.apache.activemq.transport.amqp.auto;
import java.net.URI;
import org.apache.activemq.transport.amqp.JMSClientNioPlusSslTest;
import org.apache.activemq.transport.amqp.JMSClientSslTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -16,6 +16,8 @@
*/
package org.apache.activemq.transport.amqp.joram;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
@ -73,7 +75,7 @@ public class JoramJmsNioPlusSslTest {
protected static final Logger LOG = LoggerFactory.getLogger(JoramJmsNioPlusSslTest.class);
@Rule
public Timeout to = new Timeout(10 * 1000);
public Timeout to = new Timeout(10, TimeUnit.SECONDS);
private static SSLContext def;

View File

@ -16,6 +16,8 @@
*/
package org.apache.activemq.transport.amqp.joram;
import java.util.concurrent.TimeUnit;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.rules.Timeout;
@ -66,7 +68,7 @@ import org.objectweb.jtests.jms.conform.topic.TemporaryTopicTest;
public class JoramJmsNioTest {
@Rule
public Timeout timeout = new Timeout(10 * 1000);
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
@BeforeClass
public static void beforeClass() throws Exception {

View File

@ -16,6 +16,8 @@
*/
package org.apache.activemq.transport.amqp.joram;
import java.util.concurrent.TimeUnit;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Rule;
@ -64,7 +66,7 @@ import org.objectweb.jtests.jms.conform.topic.TemporaryTopicTest;
public class JoramJmsTest {
@Rule
public Timeout timeout = new Timeout(10 * 1000);
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
@BeforeClass
public static void beforeClass() throws Exception {

View File

@ -16,6 +16,8 @@
*/
package org.apache.activemq.transport.amqp.joram;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
@ -73,7 +75,8 @@ public class JoramSslTest {
protected static final Logger LOG = LoggerFactory.getLogger(JoramSslTest.class);
@Rule
public Timeout to = new Timeout(10 * 1000);
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
static SSLContext def;
@BeforeClass