NO-JIRA: Fix small typo in variable name and toString representation

This commit is contained in:
Benjamin Graf 2020-03-21 10:03:42 +01:00 committed by Justin Bertram
parent 6b6578a74a
commit 2645f3df46
2 changed files with 6 additions and 6 deletions

View File

@ -1030,7 +1030,7 @@ public abstract class AbstractJournalStorageManager extends CriticalComponentImp
if (pageTX == null) { if (pageTX == null) {
ActiveMQServerLogger.LOGGER.journalCannotFindPageTX(pageUpdate.pageTX); ActiveMQServerLogger.LOGGER.journalCannotFindPageTX(pageUpdate.pageTX);
} else { } else {
if (!pageTX.onUpdate(pageUpdate.recods, null, null)) { if (!pageTX.onUpdate(pageUpdate.records, null, null)) {
invalidPGTx = pageTX; invalidPGTx = pageTX;
} }
} }

View File

@ -27,11 +27,11 @@ public class PageUpdateTXEncoding implements EncodingSupport {
public long pageTX; public long pageTX;
public int recods; public int records;
@Override @Override
public String toString() { public String toString() {
return "PageUpdateTXEncoding [pageTX=" + pageTX + ", recods=" + recods + "]"; return "PageUpdateTXEncoding [pageTX=" + pageTX + ", records=" + records + "]";
} }
public PageUpdateTXEncoding() { public PageUpdateTXEncoding() {
@ -39,19 +39,19 @@ public class PageUpdateTXEncoding implements EncodingSupport {
public PageUpdateTXEncoding(final long pageTX, final int records) { public PageUpdateTXEncoding(final long pageTX, final int records) {
this.pageTX = pageTX; this.pageTX = pageTX;
this.recods = records; this.records = records;
} }
@Override @Override
public void decode(ActiveMQBuffer buffer) { public void decode(ActiveMQBuffer buffer) {
this.pageTX = buffer.readLong(); this.pageTX = buffer.readLong();
this.recods = buffer.readInt(); this.records = buffer.readInt();
} }
@Override @Override
public void encode(ActiveMQBuffer buffer) { public void encode(ActiveMQBuffer buffer) {
buffer.writeLong(pageTX); buffer.writeLong(pageTX);
buffer.writeInt(recods); buffer.writeInt(records);
} }
@Override @Override