Add fatal errorprone check for ThreadPoolExecutor usage

Include ErroneousThreadPoolConstructorChecker in the default set of
fatal errorprone checks. This check guards against ThreadPoolExecutor
usage with unbounded work queues; in such cases, the thread pool size
will never go beyond corePoolSize, which can be surprising behavior.

Note: There are several violations in aosp currently which are not caught
by this static check, as the pool sizes are non-const. Those will be
fixed separately.

BUG: 200312126
Test: m RUN_ERROR_PRONE=1 javac-check
Change-Id: Ia5e4d6e3e39b30c0ab91260dfa688f2e361153e3
Merged-In: Ia5e4d6e3e39b30c0ab91260dfa688f2e361153e3
(cherry picked from commit 618767b7e9c65315d84983fa0a8dda074e74cf46)
1 file changed