You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/12/03 12:34:51 UTC
[GitHub] [calcite] liyafan82 commented on a change in pull request #2287: [CALCITE-4421] Throw IllegalArgumentException rather than AssertionError if the size of two lists to be combined is not equal
liyafan82 commented on a change in pull request #2287:
URL: https://github.com/apache/calcite/pull/2287#discussion_r535191253
##########
File path: core/src/main/java/org/apache/calcite/util/Pair.java
##########
@@ -185,7 +185,8 @@ public Pair(T1 left, T2 right) {
final int size;
if (strict) {
if (ks.size() != vs.size()) {
- throw new AssertionError();
+ throw new IllegalArgumentException(
+ "The size of two lists to be combined is required to be equal.");
Review comment:
size -> sizes
is -> are
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org