File tree Expand file tree Collapse file tree
branches/pubsub-alpha/gcloud-java-core/src/main/java/com/google/gcloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6- refs/heads/pubsub-alpha: 22f52aee1eb371759e3b990e5bd70c5c12443621
6+ refs/heads/pubsub-alpha: 522ed566e56023df01f5dfbac66913f88effdd64
77refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
Original file line number Diff line number Diff line change @@ -450,9 +450,11 @@ protected static String getAppEngineProjectId() {
450450 try {
451451 Class <?> factoryClass =
452452 Class .forName ("com.google.appengine.api.appidentity.AppIdentityServiceFactory" );
453+ Class <?> serviceClass =
454+ Class .forName ("com.google.appengine.api.appidentity.AppIdentityService" );
453455 Method method = factoryClass .getMethod ("getAppIdentityService" );
454456 Object appIdentityService = method .invoke (null );
455- method = appIdentityService . getClass () .getMethod ("getServiceAccountName" );
457+ method = serviceClass .getMethod ("getServiceAccountName" );
456458 String serviceAccountName = (String ) method .invoke (appIdentityService );
457459 int indexOfAtSign = serviceAccountName .indexOf ('@' );
458460 return serviceAccountName .substring (0 , indexOfAtSign );
You can’t perform that action at this time.
0 commit comments