File tree 1 file changed +2
-2
lines changed
datastore/src/main/java/com/google/datastore/snippets
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public class TaskList {
51
51
*
52
52
* @param description The task description
53
53
* @return The {@link Key} of the entity
54
- * @throws DatastoreException if the Datastore put fails
54
+ * @throws DatastoreException if the ID allocation or put fails
55
55
*/
56
56
Key addTask (String description ) {
57
57
Key key = datastore .allocateId (keyFactory .newKey ());
@@ -71,7 +71,7 @@ Key addTask(String description) {
71
71
*
72
72
* @param id The ID of the task entity as given by {@link Key#id()}
73
73
* @return true if the task was found, false if not
74
- * @throws DatastoreException if the transaction commit fails
74
+ * @throws DatastoreException if the transaction fails
75
75
*/
76
76
boolean markDone (long id ) {
77
77
Transaction transaction = datastore .newTransaction ();
You can’t perform that action at this time.
0 commit comments