Skip to content

Commit ca28a16

Browse files
author
Mike Dotson
committed
Fix issues with UpdateBook refactor
- Fix issue in documentation after code refactor recommendation - Remove newline from RiakObject update
1 parent c8b106f commit ca28a16

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/riak/kv/2.2.0/developing/getting-started/java/crud-operations.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Once we've read the object back in from Riak, we can update the object
5959
and store it back as we did before with the `StoreValue` object:
6060

6161
```java
62-
fetchedObject.setValue(BinaryValue.create("You can be my wingman any time.\n"));
62+
fetchedObject.setValue(BinaryValue.create("You can be my wingman any time."));
6363
StoreValue updateOp = new StoreValue.Builder(fetchedObject)
6464
.withLocation(quoteObjectLocation)
6565
.build();
@@ -170,9 +170,10 @@ Then using the `BookUpdate` class with our `mobyDick` object:
170170

171171
```java
172172
mobyDick.copiesOwned = 5;
173-
UpdateBook updatedBook = new BookUpdate(mobyDick);
173+
BookUpdate updatedBook = new BookUpdate(mobyDick);
174174

175-
UpdateValue updateValue = new UpdateValue.Builder(mobyDickLocation).withUpdate(updatedBook).build();
175+
UpdateValue updateValue = new UpdateValue.Builder(mobyDickLocation)
176+
.withUpdate(updatedBook).build();
176177
UpdateValue.Response response = client.execute(updateValue);
177178
```
178179

0 commit comments

Comments
 (0)