diff --git a/metafix/src/main/java/org/metafacture/metafix/Metafix.java b/metafix/src/main/java/org/metafacture/metafix/Metafix.java index cbcfedcb..7d4bd12e 100644 --- a/metafix/src/main/java/org/metafacture/metafix/Metafix.java +++ b/metafix/src/main/java/org/metafacture/metafix/Metafix.java @@ -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<>(); } @@ -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(); }