Skip to content

Commit

Permalink
Correct throws statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Apr 2, 2016
1 parent 1ec11ab commit 41dbfd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TaskList {
*
* @param description The task description
* @return The {@link Key} of the entity
* @throws DatastoreException if the Datastore put fails
* @throws DatastoreException if the ID allocation or put fails
*/
Key addTask(String description) {
Key key = datastore.allocateId(keyFactory.newKey());
Expand All @@ -71,7 +71,7 @@ Key addTask(String description) {
*
* @param id The ID of the task entity as given by {@link Key#id()}
* @return true if the task was found, false if not
* @throws DatastoreException if the transaction commit fails
* @throws DatastoreException if the transaction fails
*/
boolean markDone(long id) {
Transaction transaction = datastore.newTransaction();
Expand Down

0 comments on commit 41dbfd9

Please sign in to comment.