Skip to content

Commit

Permalink
Rely on autoboxing for entity count stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Oct 18, 2024
1 parent 8ea116a commit e981f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metafix/src/main/java/org/metafacture/metafix/Metafix.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void startRecord(final String identifier) {
flattener.startRecord(identifier);
entityCountStack.clear();
entityCount = 0;
entityCountStack.add(Integer.valueOf(entityCount));
entityCountStack.add(entityCount);
recordIdentifier = identifier;
entities = new ArrayList<>();
}
Expand Down Expand Up @@ -317,13 +317,13 @@ public void startEntity(final String name) {
addValue(name, value);
entities.add(value);

entityCountStack.push(Integer.valueOf(++entityCount));
entityCountStack.push(++entityCount);
flattener.startEntity(name);
}

@Override
public void endEntity() {
entityCountStack.pop().intValue();
entityCountStack.pop();
flattener.endEntity();
}

Expand Down

0 comments on commit e981f30

Please sign in to comment.