Skip to content

Commit

Permalink
Implement add(Value, boolean) using add(int, Value, boolean) (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Sep 27, 2024
1 parent c5aa947 commit fe84442
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metafix/src/main/java/org/metafacture/metafix/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ public void add(final Value value) {
}

/* package-private */ void add(final Value value, final boolean appendToPath) {
if (!isNull(value)) {
list.add(appendToPath ? value.withPathAppend(list.size() + 1) : value);
}
add(list.size(), value, appendToPath);
}

/* package-private */ void add(final int index, final Value value) {
Expand Down

0 comments on commit fe84442

Please sign in to comment.