Skip to content

Commit 1c75553

Browse files
committed
use Path copy utilities
1 parent 5beb0c5 commit 1c75553

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightblue-ldap-crud/src/main/java/com/redhat/lightblue/crud/ldap/LdapCRUDController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ private Set<Path> gatherRequiredFields(EntityMetadata md,
377377
* Handles the case of an array count field, which will not actually exist in
378378
* the ldap entity.
379379
*/
380-
381-
paths.add(new Path(node.toString().replace(fieldName, "") + LightblueUtil.createArrayFieldNameFromCountField(fieldName)));
380+
paths.add(node.mutableCopy().setLast(LightblueUtil.createArrayFieldNameFromCountField(fieldName)).immutableCopy());
382381
}
383382
else{
384383
paths.add(node);

0 commit comments

Comments
 (0)