Skip to content

Commit 05b12ae

Browse files
authoredNov 26, 2024··
feat: introduce java.time (#1410)
* feat: introduce `java.time` * declare threeten as test-scoped * completely remove threeten * reset tests * fix ignore * fix dependency:analyze
1 parent 32b02a3 commit 05b12ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
<dependency>
156156
<groupId>org.threeten</groupId>
157157
<artifactId>threetenbp</artifactId>
158+
<scope>test</scope>
158159
</dependency>
159160
</dependencies>
160161

‎src/main/java/com/google/cloud/logging/logback/LogbackBatchingSettings.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import com.google.api.gax.batching.BatchingSettings;
2020
import com.google.api.gax.batching.FlowControlSettings;
2121
import com.google.api.gax.batching.FlowController.LimitExceededBehavior;
22-
import org.threeten.bp.Duration;
22+
import java.time.Duration;
2323

2424
/**
2525
* This class is used only to provide batch settings configuration in logback.xml since {@link
@@ -69,7 +69,7 @@ public BatchingSettings build() {
6969
settings.setRequestByteThreshold(requestByteThreshold);
7070
}
7171
if (delayThreshold != null) {
72-
settings.setDelayThreshold(Duration.ofMillis(delayThreshold));
72+
settings.setDelayThresholdDuration(Duration.ofMillis(delayThreshold));
7373
}
7474
if (maxOutstandingElementCount != null
7575
|| maxOutstandingRequestBytes != null

0 commit comments

Comments
 (0)
Please sign in to comment.