Skip to content

Commit 957da6b

Browse files
author
Jerjou Cheng
committed
Fix java style violations.
1 parent 5019fb6 commit 957da6b

File tree

1 file changed

+5
-2
lines changed
  • cloud-storage/xml-api/serviceaccount-appengine-sample/src/main/java/com/google/api/client/sample/storage/appengine/serviceaccount

1 file changed

+5
-2
lines changed

cloud-storage/xml-api/serviceaccount-appengine-sample/src/main/java/com/google/api/client/sample/storage/appengine/serviceaccount/StorageSample.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import java.io.BufferedWriter;
2727
import java.io.IOException;
2828
import java.io.OutputStreamWriter;
29-
import java.net.HttpURLConnection.HTTP_NOT_FOUND;
30-
import java.net.HttpURLConnection.HTTP_OK;
3129
import java.util.Arrays;
3230

3331
import javax.servlet.http.HttpServlet;
@@ -41,6 +39,11 @@
4139
*/
4240
public class StorageSample extends HttpServlet {
4341

42+
/** HTTP status code for a resource that wasn't found. */
43+
private static final int HTTP_NOT_FOUND = 404;
44+
/** HTTP status code for a resource that was found. */
45+
private static final int HTTP_OK = 200;
46+
4447
/** The base endpoint for Google Cloud Storage api calls. */
4548
private static final String GCS_URI =
4649
"http://commondatastorage.googleapis.com";

0 commit comments

Comments
 (0)