NO-JIRA Removes redundant initializers
This commit is contained in:
parent
69582ef642
commit
6d65975f36
artemis-core-client/src/main/java/org/apache/activemq/artemis
|
@ -1573,7 +1573,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
ActiveMQClientLogger.LOGGER.failoverDuringCommit();
|
ActiveMQClientLogger.LOGGER.failoverDuringCommit();
|
||||||
|
|
||||||
XAException xaException = null;
|
XAException xaException;
|
||||||
if (onePhase) {
|
if (onePhase) {
|
||||||
logger.debug("Throwing oneFase RMFAIL on xid=" + xid, t);
|
logger.debug("Throwing oneFase RMFAIL on xid=" + xid, t);
|
||||||
//we must return XA_RMFAIL
|
//we must return XA_RMFAIL
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class DeflaterReader extends InputStream {
|
||||||
//buffer for reading input stream
|
//buffer for reading input stream
|
||||||
byte[] readBuffer = new byte[2 * len];
|
byte[] readBuffer = new byte[2 * len];
|
||||||
|
|
||||||
int n = 0;
|
int n;
|
||||||
int read = 0;
|
int read = 0;
|
||||||
|
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class InflaterReader extends InputStream {
|
||||||
*/
|
*/
|
||||||
private int doRead(byte[] buf, int offset, int len) throws DataFormatException, IOException {
|
private int doRead(byte[] buf, int offset, int len) throws DataFormatException, IOException {
|
||||||
int read = 0;
|
int read = 0;
|
||||||
int n = 0;
|
int n;
|
||||||
byte[] inputBuffer = new byte[len];
|
byte[] inputBuffer = new byte[len];
|
||||||
|
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
|
|
@ -56,11 +56,11 @@ public class MemorySize {
|
||||||
|
|
||||||
MemorySize.newObject(factory);
|
MemorySize.newObject(factory);
|
||||||
|
|
||||||
int i = 0;
|
int i;
|
||||||
long heap1 = 0;
|
long heap1;
|
||||||
long heap2 = 0;
|
long heap2;
|
||||||
long totalMemory1 = 0;
|
long totalMemory1;
|
||||||
long totalMemory2 = 0;
|
long totalMemory2;
|
||||||
|
|
||||||
// First we do a dry run with twice as many then throw away the results
|
// First we do a dry run with twice as many then throw away the results
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private void processQueue() {
|
private void processQueue() {
|
||||||
AggregatedSoftReference ref = null;
|
AggregatedSoftReference ref;
|
||||||
while ((ref = (AggregatedSoftReference) this.refQueue.poll()) != null) {
|
while ((ref = (AggregatedSoftReference) this.refQueue.poll()) != null) {
|
||||||
logger.tracef("Removing reference through processQueue:: %s", ref.get());
|
logger.tracef("Removing reference through processQueue:: %s", ref.get());
|
||||||
mapDelegate.remove(ref.key);
|
mapDelegate.remove(ref.key);
|
||||||
|
|
|
@ -116,7 +116,7 @@ public final class XMLUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String textContent = null;
|
String textContent;
|
||||||
NodeList children = n.getChildNodes();
|
NodeList children = n.getChildNodes();
|
||||||
|
|
||||||
if (children.getLength() == 0) {
|
if (children.getLength() == 0) {
|
||||||
|
|
Loading…
Reference in New Issue