Skip to content

Commit f09cae4

Browse files
committed
minor rename and version bump
1 parent 65b21ad commit f09cae4

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.google.gcloud</groupId>
55
<artifactId>gcloud-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.0.2</version>
7+
<version>0.0.3</version>
88
<name>GCloud Java</name>
99
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
1010
<description>

src/main/java/com/google/gcloud/ServiceOptions.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public B httpTransport(HttpTransport httpTransport) {
7575
return self();
7676
}
7777

78-
public B authConfig(AuthCredentials authCredentials) {
78+
public B authCredentials(AuthCredentials authCredentials) {
7979
this.authCredentials = authCredentials;
8080
return self();
8181
}
@@ -89,7 +89,7 @@ public B retryParams(RetryParams retryParams) {
8989
protected ServiceOptions(Builder<?> builder) {
9090
host = firstNonNull(builder.host, DEFAULT_HOST);
9191
httpTransport = firstNonNull(builder.httpTransport, defaultHttpTransport());
92-
authCredentials = firstNonNull(builder.authCredentials, defaultAuthConfig());
92+
authCredentials = firstNonNull(builder.authCredentials, defaultAuthCredentials());
9393
retryParams = builder.retryParams;
9494
}
9595

@@ -111,7 +111,7 @@ private static HttpTransport defaultHttpTransport() {
111111
return new NetHttpTransport();
112112
}
113113

114-
public static AuthCredentials defaultAuthConfig() {
114+
private static AuthCredentials defaultAuthCredentials() {
115115
// Consider App Engine. This will not be needed once issue #21 is fixed.
116116
if (appEngineAppId() != null) {
117117
try {
@@ -183,7 +183,7 @@ public HttpTransport httpTransport() {
183183
return httpTransport;
184184
}
185185

186-
public AuthCredentials authConfig() {
186+
public AuthCredentials authCredentials() {
187187
return authCredentials;
188188
}
189189

@@ -192,7 +192,7 @@ public RetryParams retryParams() {
192192
}
193193

194194
public HttpRequestInitializer httpRequestInitializer() {
195-
return authConfig().httpRequestInitializer(httpTransport, scopes());
195+
return authCredentials().httpRequestInitializer(httpTransport, scopes());
196196
}
197197

198198
public abstract Builder<?> toBuilder();

src/main/java/com/google/gcloud/datastore/BaseEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public B remove(String name) {
127127
return self();
128128
}
129129

130-
public B set(String name, Value<?> value) {
130+
public B set(String name, Value value) {
131131
properties.put(name, value);
132132
return self();
133133
}

src/test/java/com/google/gcloud/datastore/DatastoreServiceOptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ public void testToBuilder() throws Exception {
8282
assertEquals(original.host(), copy.host());
8383
assertEquals(original.force(), copy.force());
8484
assertEquals(original.retryParams(), copy.retryParams());
85-
assertEquals(original.authConfig(), copy.authConfig());
85+
assertEquals(original.authCredentials(), copy.authCredentials());
8686
}
8787
}

0 commit comments

Comments
 (0)