Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 317c773

Browse files
Lint
1 parent 3c70609 commit 317c773

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CivilTimeEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static LocalTime decodePacked64TimeMicros(long bitFieldTimeMicros) {
164164
LocalTime timeSeconds = decodePacked32TimeSeconds(bitFieldTimeSeconds);
165165
int microOfSecond = getFieldFromBitField(bitFieldTimeMicros, MICRO_MASK, MICRO_SHIFT);
166166
checkValidMicroOfSecond(microOfSecond);
167-
LocalTime time = timeSeconds.withNano(microOfSecond*1000);
167+
LocalTime time = timeSeconds.withNano(microOfSecond * 1000);
168168
checkValidTimeMicros(time);
169169
return time;
170170
}

google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/CivilTimeEncoderTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,12 @@ public void encodePacked64TimeMicros_validTime() {
5959
assertEquals(
6060
0x17EFBF3E58L,
6161
CivilTimeEncoder.encodePacked64TimeMicros(LocalTime.of(23, 59, 59, 999_000_000)));
62-
6362
}
6463

6564
@Test
6665
public void encodePacked64TimeMicros_giveErrorWhenDataIsLos() {
6766

68-
try {// 00:00:00.000000999
67+
try { // 00:00:00.000000999
6968
// 0b000000000000000000000000000|00000|000000|000000|00000000000000000000
7069
// 0x0
7170
assertEquals(0x0L, CivilTimeEncoder.encodePacked64TimeMicros(LocalTime.of(0, 0, 0, 999)));
@@ -168,7 +167,7 @@ public void decodePacked64TimeMicros_invalidHourOfDay_throwsIllegalArgumentExcep
168167
}
169168
}
170169

171-
//Date Time
170+
// Date Time
172171
@Test
173172
public void encodePacked64DatetimeMicros_validDateTime() {
174173
// 0001/01/01 00:00:00
@@ -211,7 +210,7 @@ public void encodePacked64DateTimeMicros_giveErrorWhenDataIsLost() {
211210
// 0001/01/01 00:00:00.000000999
212211
// 0b0000000000000000000000|00000000000001|0001|00001|00000|000000|000000
213212
// 0x4420000
214-
try{
213+
try {
215214
CivilTimeEncoder.encodePacked64DatetimeMicros(LocalDateTime.of(1, 1, 1, 0, 0, 0, 999));
216215
Assert.fail();
217216
} catch (IllegalArgumentException e) {
@@ -263,7 +262,6 @@ public void decodePacked64DatetimeMicros_validBitFieldDatetimeMicros() {
263262
assertEquals(
264263
LocalDateTime.of(9999, 12, 31, 23, 59, 59, 999_000_000),
265264
CivilTimeEncoder.decodePacked64DatetimeMicros(0x9C3F3F7EFBF3E58L));
266-
267265
}
268266

269267
@Test

0 commit comments

Comments
 (0)