Skip to content

Commit fe84442

Browse files
committed
Implement add(Value, boolean) using add(int, Value, boolean) (#127)
1 parent c5aa947 commit fe84442

File tree

1 file changed

+1
-3
lines changed
  • metafix/src/main/java/org/metafacture/metafix

1 file changed

+1
-3
lines changed

metafix/src/main/java/org/metafacture/metafix/Value.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,7 @@ public void add(final Value value) {
433433
}
434434

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

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

0 commit comments

Comments
 (0)