Skip to content

Commit b32c5b0

Browse files
committed
---
yaml --- r: 1487 b: refs/heads/master c: 30fa22a h: refs/heads/master i: 1485: 867584a 1483: a83c43c 1479: efc1730 1471: 395cf63
1 parent 5e97438 commit b32c5b0

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e0b0a66be19d01448ba562c00cb3ba5f8ab55afb
2+
refs/heads/master: 30fa22ac9bd83d386223e16c37b1d974dfe7348d
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3

trunk/gcloud-java-examples/src/main/java/com/google/gcloud/examples/DatastoreExample.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737

3838
/**
3939
* An example of using the Google Cloud Datastore.
40-
* <p>
41-
* This example adds, display or clear comments for a given user.
42-
* <p>
43-
* Steps needed for running the example:<ol>
40+
*
41+
* <p>This example adds, display or clear comments for a given user.
42+
*
43+
* <p>Steps needed for running the example:<ol>
4444
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
4545
* <li>compile using maven - {@code mvn compile}</li>
4646
* <li>run using maven - {@code mvn exec:java
@@ -58,6 +58,7 @@ public class DatastoreExample {
5858

5959
private interface DatastoreAction {
6060
void run(Transaction tx, Key userKey, String... args);
61+
6162
String getRequiredParams();
6263
}
6364

trunk/gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@
5959

6060
/**
6161
* An example of using the Google Cloud Storage.
62-
* <p>
63-
* This example demonstrates a simple/typical storage usage.
64-
* <p>
65-
* Steps needed for running the example:
62+
*
63+
* <p>This example demonstrates a simple/typical storage usage.
64+
*
65+
* <p>Steps needed for running the example:
6666
* <ol>
6767
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
6868
* <li>compile using maven - {@code mvn compile}</li>
6969
* <li>run using maven -
7070
* {@code mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.StorageExample"
71-
* -Dexec.args="[<project_id>] list [<bucket>]| info [<bucket> [<file>]]|
72-
* download <bucket> <path> [local_file]| upload <local_file> <bucket> [<path>]|
73-
* delete <bucket> <path>+| cp <from_bucket> <from_path> <to_bucket> <to_path>|
74-
* compose <bucket> <from_path>+ <to_path>| update_metadata <bucket> <file> [key=value]*|
71+
* -Dexec.args="[<project_id>] list [<bucket>] | info [<bucket> [<file>]] |
72+
* download <bucket> <path> [local_file] | upload <local_file> <bucket> [<path>] |
73+
* delete <bucket> <path>+ | cp <from_bucket> <from_path> <to_bucket> <to_path> |
74+
* compose <bucket> <from_path>+ <to_path> | update_metadata <bucket> <file> [key=value]* |
7575
* sign_url <service_account_private_key_file> <service_account_email> <bucket> <path>"}
7676
* </li>
7777
* </ol>
7878
*
79-
* The first parameter is an optional project_id (logged-in project will be used if not supplied).
80-
* Second parameter is a Storage operation (list, delete, compose,...) to demonstrate the its
81-
* usage. Any other arguments are specific to the operation.
82-
* See each action's run method for the specific Storage interaction.
79+
* <p>The first parameter is an optional {@code project_id} (logged-in project will be used if not
80+
* supplied). Second parameter is a Storage operation (list, delete, compose,...) and can be used to
81+
* demonstrate its usage. Any other arguments are specific to the operation. See each action's run
82+
* method for the specific Storage interaction.
8383
*/
8484
public class StorageExample {
8585

@@ -523,7 +523,7 @@ public String params() {
523523
ACTIONS.put("sign_url", new SignUrlAction());
524524
}
525525

526-
public static void printUsage() {
526+
private static void printUsage() {
527527
StringBuilder actionAndParams = new StringBuilder();
528528
for (Map.Entry<String, StorageAction> entry : ACTIONS.entrySet()) {
529529
actionAndParams.append("\n\t").append(entry.getKey());

0 commit comments

Comments
 (0)