Skip to content

Commit 9bdf885

Browse files
committed
fixing docs
1 parent b177e9a commit 9bdf885

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ public abstract static class PartMetadataFieldDecorator implements Serializable
693693
* <p>When provided with a duration, a time in the future will be calculated for each part file
694694
* upon upload, this new value can be used in OLM rules to cleanup abandoned part files.
695695
*
696-
* @see {@link https://cloud.google.com/storage/docs/lifecycle#dayssincecustomtime}
696+
* See [CustomTime OLM documentation](https://cloud.google.com/storage/docs/lifecycle#dayssincecustomtime)
697+
*
697698
* @see #withPartMetadataFieldDecorator(PartMetadataFieldDecorator)
698699
* @since 2.35.1 This new api is in preview and is subject to breaking changes.
699700
*/

google-cloud-storage/src/test/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfigTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public void partMetadataFieldDecorator_customTime() {
9797
BlobInfo.Builder testBlob = BlobInfo.newBuilder("testBlob", "testBucket");
9898
Duration duration = Duration.ofSeconds(30);
9999
TestClock clock = TestClock.tickBy(Instant.EPOCH, Duration.ofSeconds(1));
100-
OffsetDateTime expected = OffsetDateTime.from(Instant.EPOCH.plus(duration).atZone(ZoneId.of("Z")));
100+
OffsetDateTime expected =
101+
OffsetDateTime.from(Instant.EPOCH.plus(duration).atZone(ZoneId.of("Z")));
101102
PartMetadataFieldDecorator.setCustomTimeInFuture(duration).newInstance(clock).apply(testBlob);
102103

103104
assertThat(expected).isEqualTo(testBlob.build().getCustomTimeOffsetDateTime());

0 commit comments

Comments
 (0)