Skip to content

Commit 1eb7758

Browse files
authored
Fix check style (GoogleCloudPlatform#3840)
* Checkstyle Fixes Fixes GoogleCloudPlatform#3833 * More Checkstyle fixes Fixes GoogleCloudPlatform#3833
1 parent 34f6b0d commit 1eb7758

File tree

48 files changed

+64
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+64
-13
lines changed

appengine-java11/tasks/src/test/java/com/example/task/CreateTaskIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
/** Tests for creating Tasks with App Engine targets. */
3434
@RunWith(JUnit4.class)
35+
@SuppressWarnings("checkstyle:AbbreviationAsWordInName")
3536
public class CreateTaskIT {
3637
private ByteArrayOutputStream bout;
3738
private PrintStream out;

appengine-java8/bigtable/src/main/java/com/example/bigtable/BigtableHelloWorld.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class BigtableHelloWorld {
5050

5151
/**
5252
* Create a table -- first time only.
53+
*
5354
* @param connection to Bigtable
5455
* @return the status
5556
*/

appengine-java8/bigtable/src/main/java/com/example/bigtable/BigtableHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static void connect() throws IOException {
5757

5858
/**
5959
* Get the shared connection to Cloud Bigtable.
60+
*
6061
* @return the connection
6162
*/
6263
public static Connection getConnection() {

appengine-java8/datastore/src/test/java/com/example/appengine/TransactionsTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public void entityGroups() throws Exception {
126126
// Transactions on entities in different entity groups
127127
txn = datastore.beginTransaction();
128128
tom = datastore.get(person.getKey());
129-
Entity photoNotAChild = new Entity("Photo");
130-
photoNotAChild.setProperty("photoUrl", "http://domain.com/path/to/photo.jpg");
131-
datastore.put(txn, photoNotAChild);
129+
Entity photoNotaChild = new Entity("Photo");
130+
photoNotaChild.setProperty("photoUrl", "http://domain.com/path/to/photo.jpg");
131+
datastore.put(txn, photoNotaChild);
132132

133133
// Throws IllegalArgumentException because the Person entity
134134
// and the Photo entity belong to different entity groups.
@@ -141,6 +141,7 @@ public void entityGroups() throws Exception {
141141
}
142142

143143
@Test
144+
@SuppressWarnings("checkstyle:AbbreviationAsWordInName")
144145
public void creatingAnEntityInASpecificEntityGroup() throws Exception {
145146
String boardName = "my-message-board";
146147

appengine-java8/firebase-tictactoe/src/main/java/com/example/appengine/firetactoe/Game.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public String getChannelKey(String userId) {
121121

122122
/**
123123
* deleteChannel.
124+
*
124125
* @param userId .
125126
* @throws IOException .
126127
*/
@@ -140,6 +141,7 @@ private void sendUpdateToUser(String userId) throws IOException {
140141

141142
/**
142143
* sendUpdateToClients.
144+
*
143145
* @throws IOException if we had some kind of network issue.
144146
*/
145147
public void sendUpdateToClients() throws IOException {
@@ -173,6 +175,7 @@ public void checkWin() {
173175

174176
/**
175177
* makeMove for user.
178+
*
176179
* @param position .
177180
* @param userId .
178181
* @return true if successful.

appengine-java8/firebase-tictactoe/src/main/java/com/example/appengine/firetactoe/ObjectifyHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ObjectifyHelper implements ServletContextListener {
2929
/**
3030
* This will be invoked as part of a warmup request, or the first user request if no warmup
3131
* request.
32+
*
3233
* @param event ServletContextEvent.
3334
*/
3435
public void contextInitialized(ServletContextEvent event) {

appengine-java8/multitenancy/src/main/java/com/example/appengine/Greeting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public Greeting(String book, String content) {
7272

7373
/**
7474
* Construct a Greeting with all params.
75+
*
7576
* @param book .
7677
* @param content .
7778
* @param id .

appengine-java8/multitenancy/src/main/java/com/example/appengine/OfyHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class OfyHelper implements ServletContextListener {
3030

3131
/**
3232
* A ServletContextListener initializer.
33+
*
3334
* @param event .
3435
*/
3536
public void contextInitialized(ServletContextEvent event) {

appengine-java8/remote-client/src/main/java/com/example/appengine/remote/RemoteApiExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class RemoteApiExample {
2828

2929
/**
3030
* A simple API client.
31+
*
3132
* @param args .
3233
* @throws IOException .
3334
*/

appengine-java8/search/src/main/java/com/example/appengine/search/Utils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class Utils {
3939
* @throws InterruptedException When Thread.sleep is interrupted.
4040
*/
4141
// [START putting_document_with_retry]
42+
@SuppressWarnings("checkstyle:AbbreviationAsWordInName")
4243
public static void indexADocument(String indexName, Document document)
4344
throws InterruptedException {
4445
IndexSpec indexSpec = IndexSpec.newBuilder().setName(indexName).build();

0 commit comments

Comments
 (0)