ctubbsii commented on code in PR #2712:
URL: https://github.com/apache/accumulo/pull/2712#discussion_r875382704


##########
core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java:
##########
@@ -512,10 +516,16 @@ public Future<?> submit(Runnable task) {
    * If you need the server-side shared ScheduledThreadPoolExecutor, then use
    * ServerContext.getScheduledExecutor()
    */
+  @SuppressWarnings("deprecation")

Review Comment:
   You can narrow this warnings suppression to a variable rather than the whole 
method by doing something like:
   ```java
   Property prop = conf.resolve(Property.GENERAL_THREADPOOL_SIZE, 
Property.GENERAL_SIMPLETIMER_THREADPOOL_SIZE);
   ```
   and then put the warnings suppression only on that variable, then use that 
variable in the next call to createExecutorService.



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

Reply via email to