github-advanced-security[bot] commented on code in PR #18176:
URL: https://github.com/apache/druid/pull/18176#discussion_r2219967234
##########
processing/src/test/java/org/apache/druid/segment/TestHelper.java:
##########
@@ -513,4 +515,15 @@
throw new UncheckedIOException(e);
}
}
+
+ public static DataSegment toSimpleDataSegment(Segment segment, ShardSpec
shardSpec)
+ {
+ return DataSegment.builder()
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSegment.builder](1) should be avoided because it has been
deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/9923)
##########
server/src/test/java/org/apache/druid/server/ClientQuerySegmentWalkerTest.java:
##########
@@ -1838,27 +1847,38 @@
}
}
- private static VersionedIntervalTimeline<String,
ReferenceCountedSegmentProvider> makeTimeline(
- final String name,
+ private static DataSegment makeDataSegment(String name)
+ {
+ return DataSegment.builder()
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSegment.builder](1) should be avoided because it has been
deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/9924)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]