You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Gian Merlino (Jira)" <ji...@apache.org> on 2023/01/14 08:26:00 UTC
[jira] [Created] (CALCITE-5477) Prefer Util.checkArgument over Preconditions.checkArgument
Gian Merlino created CALCITE-5477:
-------------------------------------
Summary: Prefer Util.checkArgument over Preconditions.checkArgument
Key: CALCITE-5477
URL: https://issues.apache.org/jira/browse/CALCITE-5477
Project: Calcite
Issue Type: Improvement
Reporter: Gian Merlino
Related to CALCITE-5428.
Preconditions.checkArgument gained new overloads in Guava 20.0, which prevents code built using Guava 20.0 from running properly with earlier versions of Guava. (When building against a later version of Guava, as Calcite does by default, the Java compiler generates calls to methods that don't exist in those earlier versions.)
Example: in Guava 20.0 there is {{checkArgument(String, Object, int)}}; in earlier versions this would be handled by {{checkArgument(String, Object, Object...)}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)