Fix unused local variable warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -207,7 +207,7 @@ public class JmsTemplate102Tests extends TestCase {
|
||||
template.execute(new SessionCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
session.getTransacted();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@@ -249,8 +249,8 @@ public class JmsTemplate102Tests extends TestCase {
|
||||
template.execute(new ProducerCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session, MessageProducer producer) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
int i = producer.getPriority();
|
||||
session.getTransacted();
|
||||
producer.getPriority();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -190,8 +190,8 @@ public class JmsTemplateTests extends TestCase {
|
||||
template.execute(new ProducerCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session, MessageProducer producer) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
int i = producer.getPriority();
|
||||
session.getTransacted();
|
||||
producer.getPriority();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@@ -234,8 +234,8 @@ public class JmsTemplateTests extends TestCase {
|
||||
template.execute(new ProducerCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session, MessageProducer producer) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
int i = producer.getPriority();
|
||||
session.getTransacted();
|
||||
producer.getPriority();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@@ -264,7 +264,7 @@ public class JmsTemplateTests extends TestCase {
|
||||
template.execute(new SessionCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
session.getTransacted();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@@ -303,14 +303,14 @@ public class JmsTemplateTests extends TestCase {
|
||||
template.execute(new SessionCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
session.getTransacted();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
template.execute(new SessionCallback() {
|
||||
@Override
|
||||
public Object doInJms(Session session) throws JMSException {
|
||||
boolean b = session.getTransacted();
|
||||
session.getTransacted();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
@@ -321,7 +321,7 @@ public class JmsTemplateTests extends TestCase {
|
||||
TransactionAwareConnectionFactoryProxy tacf = new TransactionAwareConnectionFactoryProxy(scf);
|
||||
Connection tac = tacf.createConnection();
|
||||
Session tas = tac.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||
boolean b = tas.getTransacted();
|
||||
tas.getTransacted();
|
||||
tas.close();
|
||||
tac.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user