Akshat-Jain commented on code in PR #17566:
URL: https://github.com/apache/druid/pull/17566#discussion_r1884436919


##########
server/src/main/java/org/apache/druid/server/coordinator/loading/HttpLoadQueuePeon.java:
##########
@@ -76,14 +76,10 @@
 public class HttpLoadQueuePeon implements LoadQueuePeon
 {
   public static final TypeReference<List<DataSegmentChangeRequest>> 
REQUEST_ENTITY_TYPE_REF =
-      new TypeReference<List<DataSegmentChangeRequest>>()
-      {
-      };
+      new TypeReference<>() {};

Review Comment:
   Have raised PR: https://github.com/apache/druid/pull/17567. The PR isn't 
limited to just anonymous class usages, but rather does it for all usages where 
explicit type argument was redundant. I don't see an easy way to identify 
usages only for anonymous classes, and I didn't see any reason why we shouldn't 
do it for other usages as well, so ended up doing that. Hope that works!
   
   Appreciate your review on the PR, thanks!



-- 
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]

Reply via email to