You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2017/01/20 23:02:26 UTC

[jira] [Created] (CALCITE-1597) Obsolete Util.newInternal and Throwables.propagate

Julian Hyde created CALCITE-1597:
------------------------------------

             Summary: Obsolete Util.newInternal and Throwables.propagate
                 Key: CALCITE-1597
                 URL: https://issues.apache.org/jira/browse/CALCITE-1597
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


Replace:
* calls to {{Util.newInternal()}} with {{new AssertionError()}}
* calls to {{Util.newInternal(message)}} with {{new AssertionError(message)}}
* calls to {{Util.newInternal(message, ex)}} with either {{new AssertionError(message, ex)}} (if the problem is definitely a code bug) or {{new RuntimeException(message, ex)}} (if it is a user or system error)

Also, remove calls to {{Throwables.propagate}}. It is [deprecated as of Guava 20|https://github.com/google/guava/wiki/Why-we-deprecated-Throwables.propagate].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)