NO-JIRA Removes redundant initializers

This commit is contained in:
Otavio R. Piske 2019-02-20 21:14:53 +01:00 committed by Clebert Suconic
parent 69582ef642
commit 6d65975f36
6 changed files with 10 additions and 10 deletions

View File

@ -1573,7 +1573,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
} catch (Throwable t) {
ActiveMQClientLogger.LOGGER.failoverDuringCommit();
XAException xaException = null;
XAException xaException;
if (onePhase) {
logger.debug("Throwing oneFase RMFAIL on xid=" + xid, t);
//we must return XA_RMFAIL

View File

@ -71,7 +71,7 @@ public class DeflaterReader extends InputStream {
//buffer for reading input stream
byte[] readBuffer = new byte[2 * len];
int n = 0;
int n;
int read = 0;
while (len > 0) {

View File

@ -78,7 +78,7 @@ public class InflaterReader extends InputStream {
*/
private int doRead(byte[] buf, int offset, int len) throws DataFormatException, IOException {
int read = 0;
int n = 0;
int n;
byte[] inputBuffer = new byte[len];
while (len > 0) {

View File

@ -56,11 +56,11 @@ public class MemorySize {
MemorySize.newObject(factory);
int i = 0;
long heap1 = 0;
long heap2 = 0;
long totalMemory1 = 0;
long totalMemory2 = 0;
int i;
long heap1;
long heap2;
long totalMemory1;
long totalMemory2;
// First we do a dry run with twice as many then throw away the results

View File

@ -308,7 +308,7 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
@SuppressWarnings("unchecked")
private void processQueue() {
AggregatedSoftReference ref = null;
AggregatedSoftReference ref;
while ((ref = (AggregatedSoftReference) this.refQueue.poll()) != null) {
logger.tracef("Removing reference through processQueue:: %s", ref.get());
mapDelegate.remove(ref.key);

View File

@ -116,7 +116,7 @@ public final class XMLUtil {
}
}
String textContent = null;
String textContent;
NodeList children = n.getChildNodes();
if (children.getLength() == 0) {