File tree Expand file tree Collapse file tree
gcloud-java-examples/src/main/java/com/google/gcloud/examples
gcloud-java-resourcemanager
src/test/java/com/google/gcloud/resourcemanager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: bac6a070d46b89213516a1cabe6f796fac41be73
2+ refs/heads/master: b5d4bcaac68a609056edbcd986f0155ecdea0377
33refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
Original file line number Diff line number Diff line change @@ -179,11 +179,11 @@ private static void addUsage(
179179 usage .append (actionName );
180180 Joiner joiner = Joiner .on (" " );
181181 String [] requiredParams = action .getRequiredParams ();
182- String [] optionalParams = action .getOptionalParams ();
183182 if (requiredParams .length > 0 ) {
184183 usage .append (' ' );
185184 joiner .appendTo (usage , requiredParams );
186185 }
186+ String [] optionalParams = action .getOptionalParams ();
187187 if (optionalParams .length > 0 ) {
188188 usage .append (" [" );
189189 joiner .appendTo (usage , optionalParams );
@@ -213,8 +213,9 @@ public static void main(String... args) {
213213 args = args .length > 1 ? Arrays .copyOfRange (args , 1 , args .length ) : new String [] {};
214214 if (args .length < action .getRequiredParams ().length ) {
215215 StringBuilder usage = new StringBuilder ();
216+ usage .append ("Usage: " );
216217 addUsage (actionName , action , usage );
217- System .out .println ("Usage: " + usage );
218+ System .out .println (usage );
218219 } else {
219220 action .run (resourceManager , args );
220221 }
Original file line number Diff line number Diff line change 1111 <parent >
1212 <groupId >com.google.gcloud</groupId >
1313 <artifactId >gcloud-java-pom</artifactId >
14- <version >0.0.13 -SNAPSHOT</version >
14+ <version >0.1.1 -SNAPSHOT</version >
1515 </parent >
1616 <properties >
1717 <site .installationModule>gcloud-java-resourcemanager</site .installationModule>
Original file line number Diff line number Diff line change 2020import static org .junit .Assert .assertNotSame ;
2121
2222import com .google .common .collect .ImmutableMap ;
23- import com .google .gcloud .AuthCredentials ;
2423import com .google .gcloud .PageImpl ;
2524import com .google .gcloud .RetryParams ;
2625
@@ -59,7 +58,6 @@ public void testServiceOptions() throws Exception {
5958 options = options .toBuilder ()
6059 .projectId ("some-unnecessary-project-ID" )
6160 .retryParams (RetryParams .defaultInstance ())
62- .authCredentials (AuthCredentials .noCredentials ())
6361 .build ();
6462 serializedCopy = serializeAndDeserialize (options );
6563 assertEquals (options , serializedCopy );
You can’t perform that action at this time.
0 commit comments