Skip to content

Commit 97a98d4

Browse files
committed
Rename variable
1 parent 67d430b commit 97a98d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mvvm4fx-core/src/main/java/com/techsenger/mvvm4fx/core/AbstractComponentViewModel.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@ public AbstractComponentViewModel() {
4343
var policy = this.descriptor.getHistoryPolicy();
4444
if (this.descriptor.getState() == ComponentState.CONSTRUCTED) {
4545
logger.debug("{} History policy on constucting: {}", this.descriptor.getLogPrefix(), policy);
46-
ComponentHistory history = null;
46+
ComponentHistory localHistory = null;
4747
if (policy != NONE) {
48-
history = getOrRequestHistory();
49-
if (history.isFresh()) {
48+
localHistory = getOrRequestHistory();
49+
if (localHistory.isFresh()) {
5050
logger.debug("{} History is fresh. Skipping restoration", this.descriptor.getLogPrefix());
5151
} else {
5252
switch (policy) {
5353
case DATA:
54-
history.restoreData(this);
54+
localHistory.restoreData(this);
5555
postHistoryRestore();
5656
break;
5757
case APPEARANCE:
58-
history.restoreAppearance(this);
58+
localHistory.restoreAppearance(this);
5959
postHistoryRestore();
6060
break;
6161
case ALL:
62-
history.restoreData(this);
63-
history.restoreAppearance(this);
62+
localHistory.restoreData(this);
63+
localHistory.restoreAppearance(this);
6464
postHistoryRestore();
6565
break;
6666
default:

0 commit comments

Comments
 (0)