Skip to content

Commit 30fa22a

Browse files
committed
Minor style fixes to DatastoreExample and StorageExample
1 parent e0b0a66 commit 30fa22a

2 files changed

Lines changed: 18 additions & 17 deletions

File tree

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

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)