Kurt Deschler created IMPALA-11058:
--------------------------------------
Summary: Errors reported with errorprone compilation
Key: IMPALA-11058
URL: https://issues.apache.org/jira/browse/IMPALA-11058
Project: IMPALA
Issue Type: Bug
Components: Frontend
Affects Versions: Impala 3.4.0
Reporter: Kurt Deschler
> mvn -q compile -DskipTests -Perrorprone
...
[ERROR]
/home/kdeschle/Impala/fe/src/main/java/org/apache/impala/analysis/TableName.java:[81,48]
[PreconditionsCheckNotNullPrimitive] First argument to
`Preconditions.checkNotNull()` is a primitive rather than an object reference
[ERROR] (see
http://errorprone.info/bugpattern/PreconditionsCheckNotNullPrimitive)
[ERROR] Did you mean 'Preconditions.checkState(isFullyQualified());'?
[ERROR]
/home/kdeschle/Impala/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java:[6538,9]
[DeadException] Exception created but not thrown
[ERROR] (see http://errorprone.info/bugpattern/DeadException)
[ERROR] Did you mean 'throw new ImpalaRuntimeException('?
[ERROR]
/home/kdeschle/Impala/fe/src/main/java/org/apache/impala/catalog/KuduTable.java:[269,13]
[ReturnValueIgnored] Return value of this method must be used
[ERROR] (see http://errorprone.info/bugpattern/ReturnValueIgnored)
[ERROR] Did you mean 's = s.trim();'?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)