Skip to content

Commit

Permalink
SupressWarnings correctly (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesv authored Aug 23, 2017
1 parent 0e81fc5 commit e6d84cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void repeatedProperties_storesList() throws Exception {
assertThat(retrievedFruits).containsExactlyElementsIn(favoriteFruit).inOrder();
}

@SuppressWarnings(VariableDeclarationUsageDistance)
@SuppressWarnings("VariableDeclarationUsageDistance")
@Test
public void embeddedEntity_fromEmbedded_embedsProperties() throws Exception {
Entity employee = new Entity("Employee");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ public void entityGroups() throws Exception {
}
}

@SuppressWarnings(VariableDeclarationUsageDistance)
@Test
public void creatingAnEntityInASpecificEntityGroup() throws Exception {
String boardName = "my-message-board";
Expand All @@ -152,14 +151,14 @@ public void creatingAnEntityInASpecificEntityGroup() throws Exception {
String messageText = "Some message.";
Date postDate = new Date();

Transaction txn = datastore.beginTransaction();

Key messageBoardKey = KeyFactory.createKey("MessageBoard", boardName);

Entity message = new Entity("Message", messageBoardKey);
message.setProperty("message_title", messageTitle);
message.setProperty("message_text", messageText);
message.setProperty("post_date", postDate);

Transaction txn = datastore.beginTransaction();
datastore.put(txn, message);

txn.commit();
Expand Down

0 comments on commit e6d84cd

Please sign in to comment.