Skip to content

Commit 41dbfd9

Browse files
author
Ajay Kannan
committed
Correct throws statements
1 parent 1ec11ab commit 41dbfd9

File tree

1 file changed

+2
-2
lines changed
  • datastore/src/main/java/com/google/datastore/snippets

1 file changed

+2
-2
lines changed

datastore/src/main/java/com/google/datastore/snippets/TaskList.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class TaskList {
5151
*
5252
* @param description The task description
5353
* @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
5555
*/
5656
Key addTask(String description) {
5757
Key key = datastore.allocateId(keyFactory.newKey());
@@ -71,7 +71,7 @@ Key addTask(String description) {
7171
*
7272
* @param id The ID of the task entity as given by {@link Key#id()}
7373
* @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
7575
*/
7676
boolean markDone(long id) {
7777
Transaction transaction = datastore.newTransaction();

0 commit comments

Comments
 (0)