Skip to content

Commit 60d43c9

Browse files
committed
---
yaml --- r: 2333 b: refs/heads/update-datastore c: 2bdb042 h: refs/heads/master i: 2331: 9c90c39
1 parent ea3efe1 commit 60d43c9

26 files changed

Lines changed: 166 additions & 157 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: e391e4146c303fafe98d749105607c489b249580
8+
refs/heads/update-datastore: 2bdb042de332925e10d29f99d0d04881b70a0c0d
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-core/src/main/java/com/google/gcloud/RetryParams.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ public double getRetryDelayBackoffFactor() {
251251
}
252252

253253
/**
254-
* Returns the totalRetryPeriodMillis. Default value is {@value #DEFAULT_TOTAL_RETRY_PERIOD_MILLIS}.
254+
* Returns the totalRetryPeriodMillis. Default value is
255+
* {@value #DEFAULT_TOTAL_RETRY_PERIOD_MILLIS}.
255256
*/
256257
public long getTotalRetryPeriodMillis() {
257258
return totalRetryPeriodMillis;

branches/update-datastore/gcloud-java-core/src/main/java/com/google/gcloud/ServiceOptions.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
import java.util.regex.Pattern;
4949

5050
public abstract class ServiceOptions<
51-
ServiceT extends Service,
52-
ServiceRpcT,
53-
OptionsT extends ServiceOptions<ServiceT, ServiceRpcT, OptionsT>>
51+
ServiceT extends Service,
52+
ServiceRpcT,
53+
OptionsT extends ServiceOptions<ServiceT, ServiceRpcT, OptionsT>>
5454
implements Serializable {
5555

5656
private static final String DEFAULT_HOST = "https://www.googleapis.com";
@@ -116,9 +116,9 @@ public HttpTransport create() {
116116
* Implementations should implement {@code Serializable} wherever possible and must document
117117
* whether or not they do support serialization.
118118
*/
119-
public static abstract class Clock {
119+
public abstract static class Clock {
120120

121-
private static ServiceOptions.Clock DEFAULT_TIME_SOURCE = new DefaultClock();
121+
private static final ServiceOptions.Clock DEFAULT_TIME_SOURCE = new DefaultClock();
122122

123123
/**
124124
* Returns current time in milliseconds according to this clock.

branches/update-datastore/gcloud-java-core/src/test/java/com/google/gcloud/ExceptionHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
import com.google.gcloud.ExceptionHandler.Interceptor;
2424
import com.google.gcloud.ExceptionHandler.Interceptor.RetryResult;
2525

26-
import org.junit.rules.ExpectedException;
2726
import org.junit.Rule;
2827
import org.junit.Test;
28+
import org.junit.rules.ExpectedException;
2929

3030
import java.io.FileNotFoundException;
3131
import java.io.IOException;

branches/update-datastore/gcloud-java-datastore/src/main/java/com/google/gcloud/datastore/Blob.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
* A Google Cloud Datastore Blob.
3636
* This class is immutable.
3737
*
38-
* @see <a href="https://cloud.google.com/datastore/docs/concepts/entities">Google Cloud Datastore Entities, Properties, and Keys</a>
38+
* @see <a href="https://cloud.google.com/datastore/docs/concepts/entities">
39+
* Google Cloud Datastore Entities, Properties, and Keys</a>
3940
*/
4041
public final class Blob extends Serializable<DatastoreV1.Value> {
4142

branches/update-datastore/gcloud-java-datastore/src/main/java/com/google/gcloud/datastore/Transaction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
* }
4848
* } </pre>
4949
*
50-
* @see <a href="https://cloud.google.com/datastore/docs/concepts/transactions">Google Cloud Datastore transactions</a>
50+
* @see <a href="https://cloud.google.com/datastore/docs/concepts/transactions">
51+
* Google Cloud Datastore transactions</a>
5152
*
5253
*/
5354
public interface Transaction extends DatastoreBatchWriter, DatastoreReaderWriter {

branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/BaseKeyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ public void testAncestors() throws Exception {
115115
BaseKey key = builder.build();
116116
assertTrue(key.ancestors().isEmpty());
117117
List<PathElement> path = new ArrayList<>();
118-
path.add(PathElement.of("p1","v1"));
118+
path.add(PathElement.of("p1", "v1"));
119119
key = builder.ancestors(path.get(0)).build();
120120
assertEquals(path, key.ancestors());
121-
path.add(PathElement.of("p2","v2"));
121+
path.add(PathElement.of("p2", "v2"));
122122
key = builder.ancestors(path.get(1)).build();
123123
assertEquals(path, key.ancestors());
124124
}

branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/DatastoreTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ public void testNewBatch() {
346346

347347
@Test
348348
public void testRunGqlQueryNoCasting() {
349-
Query<Entity> query1 = Query.gqlQueryBuilder(ResultType.ENTITY, "select * from " + KIND1).build();
349+
Query<Entity> query1 =
350+
Query.gqlQueryBuilder(ResultType.ENTITY, "select * from " + KIND1).build();
350351
QueryResults<Entity> results1 = datastore.run(query1);
351352
assertTrue(results1.hasNext());
352353
assertEquals(ENTITY1, results1.next());

branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/ListValueTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
public class ListValueTest {
3030

31-
private static final List<Value<?>> CONTENT = ImmutableList.of(NullValue.of(), StringValue.of("foo"));
31+
private static final List<Value<?>> CONTENT =
32+
ImmutableList.of(NullValue.of(), StringValue.of("foo"));
3233

3334
@Test
3435
public void testToBuilder() throws Exception {

branches/update-datastore/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/SerializationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public class SerializationTest {
4848
private static final Key KEY2 = Key.builder(KEY1, "v", 2).build();
4949
private static final DateTime DATE_TIME1 = DateTime.now();
5050
private static final Blob BLOB1 = Blob.copyFrom(UTF_8.encode("hello world"));
51-
private static final Cursor CURSOR1 = Cursor.copyFrom(new byte[] {1,2});
52-
private static final Cursor CURSOR2 = Cursor.copyFrom(new byte[]{10});
51+
private static final Cursor CURSOR1 = Cursor.copyFrom(new byte[] {1, 2});
52+
private static final Cursor CURSOR2 = Cursor.copyFrom(new byte[] {10});
5353
private static final Query<?> GQL1 =
5454
Query.gqlQueryBuilder("select * from kind1 where name = @name and age > @1")
5555
.setBinding("name", "name1")

0 commit comments

Comments
 (0)