@Test public void updatePropertyPathNull() { CommitBuilder builder = new CommitBuilder(ns, null); try { builder.updateProperty((Path) null, "p", "v"); expectNPE(); } catch (NullPointerException e) { } }
@NotNull CommitBuilder updateProperty(@NotNull Path path, @NotNull String propertyName, @Nullable String value) { checkNotNull(path); checkNotNull(propertyName); UpdateOp op = getUpdateOperationForNode(path); String key = Utils.escapePropertyName(propertyName); op.setMapEntry(key, revision, value); return this; }
CommitBuilder { @NotNull CommitBuilder updateProperty(@NotNull Path path, @NotNull String propertyName, @Nullable String value) { checkNotNull(path); checkNotNull(propertyName); UpdateOp op = getUpdateOperationForNode(path); String key = Utils.escapePropertyName(propertyName); op.setMapEntry(key, revision, value); return this; } }
CommitBuilder { @NotNull CommitBuilder updateProperty(@NotNull Path path, @NotNull String propertyName, @Nullable String value) { checkNotNull(path); checkNotNull(propertyName); UpdateOp op = getUpdateOperationForNode(path); String key = Utils.escapePropertyName(propertyName); op.setMapEntry(key, revision, value); return this; } CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @Nullable RevisionVector baseRevision);   CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @NotNull Revision revision,
                  @Nullable RevisionVector baseRevision); }
CommitBuilder { @NotNull CommitBuilder updateProperty(@NotNull Path path, @NotNull String propertyName, @Nullable String value) { checkNotNull(path); checkNotNull(propertyName); UpdateOp op = getUpdateOperationForNode(path); String key = Utils.escapePropertyName(propertyName); op.setMapEntry(key, revision, value); return this; } CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @Nullable RevisionVector baseRevision);   CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @NotNull Revision revision,
                  @Nullable RevisionVector baseRevision);  }
CommitBuilder { @NotNull CommitBuilder updateProperty(@NotNull Path path, @NotNull String propertyName, @Nullable String value) { checkNotNull(path); checkNotNull(propertyName); UpdateOp op = getUpdateOperationForNode(path); String key = Utils.escapePropertyName(propertyName); op.setMapEntry(key, revision, value); return this; } CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @Nullable RevisionVector baseRevision);   CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @NotNull Revision revision,
                  @Nullable RevisionVector baseRevision);   }