mirror of
https://github.com/apache/impala.git
synced 2026-02-03 18:00:39 -05:00
Replaces constructor calls for object versions of primitives - Integer, Long, Float, Double, Boolean - with optimized valueOf calls as using constructors for these is deprecated according to jdeprscan. Removes override of finalize. Use of finalize is deprecated, and hive-udf-call.cc ensures we always call close when unloading the UDF. Adds try-with-resources to UdfExecutorTest to handle test cleanup. Updates BigDecimal.setScale to use RoundingMode. Change-Id: Idfb053223b6e098e6032502f873361696dd2da84 Reviewed-on: http://gerrit.cloudera.org:8080/19721 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>