Skip to content

Commit 90c1478

Browse files
author
Sagar Agarwal
committed
fix formatting
1 parent 4f2543a commit 90c1478

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Interval.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
* broken into two components microseconds and nanoFractions, where nanoFractions can range from
3030
* [-999, 999]. Internally, Spanner supports Interval value with the following range of individual
3131
* fields: months: [-120000, 120000] days: [-3660000, 3660000] nanoseconds: [-316224000000000000000,
32-
* 316224000000000000000]. Interval value created outside the specified domain will return error when
33-
* sent to Spanner backend.
32+
* 316224000000000000000]. Interval value created outside the specified domain will return error
33+
* when sent to Spanner backend.
3434
*/
3535
@Immutable
3636
public class Interval implements Serializable {
@@ -113,7 +113,8 @@ public static Interval ofMilliseconds(long milliseconds) {
113113
/** Creates an interval with specified number of microseconds. */
114114
public static Interval ofMicroseconds(long micros) {
115115
return builder()
116-
.setNanoseconds(BigInteger.valueOf(micros).multiply(BigInteger.valueOf(NANOS_PER_MICROSECOND)))
116+
.setNanoseconds(
117+
BigInteger.valueOf(micros).multiply(BigInteger.valueOf(NANOS_PER_MICROSECOND)))
117118
.build();
118119
}
119120

google-cloud-spanner/src/test/java/com/google/cloud/spanner/IntervalTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,23 @@ public void testOfSeconds() {
4848
Interval interval = Interval.ofSeconds(10);
4949
assertEquals(0, interval.getMonths());
5050
assertEquals(0, interval.getDays());
51-
assertEquals(
52-
BigInteger.valueOf(10000000000L), interval.getNanoseconds());
51+
assertEquals(BigInteger.valueOf(10000000000L), interval.getNanoseconds());
5352
}
5453

5554
@Test
5655
public void testOfMilliseconds() {
5756
Interval interval = Interval.ofMilliseconds(10);
5857
assertEquals(0, interval.getMonths());
5958
assertEquals(0, interval.getDays());
60-
assertEquals(
61-
BigInteger.valueOf(10000000L), interval.getNanoseconds());
59+
assertEquals(BigInteger.valueOf(10000000L), interval.getNanoseconds());
6260
}
6361

6462
@Test
6563
public void testOfMicroseconds() {
6664
Interval interval = Interval.ofMicroseconds(10);
6765
assertEquals(0, interval.getMonths());
6866
assertEquals(0, interval.getDays());
69-
assertEquals(
70-
BigInteger.valueOf(10000), interval.getNanoseconds());
67+
assertEquals(BigInteger.valueOf(10000), interval.getNanoseconds());
7168
}
7269

7370
@Test

0 commit comments

Comments
 (0)