We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6237b commit bba7263Copy full SHA for bba7263
src/jvm/storm/trident/tuple/ComboList.java
@@ -8,8 +8,10 @@
8
public class ComboList extends AbstractList<Object> {
9
public static class Factory implements Serializable {
10
Pointer[] index;
11
+ int numLists;
12
13
public Factory(int... sizes) {
14
+ numLists = sizes.length;
15
int total = 0;
16
for(int size: sizes) {
17
total+=size;
@@ -27,6 +29,9 @@ public Factory(int... sizes) {
27
29
}
28
30
31
public ComboList create(List[] delegates) {
32
+ if(delegates.length!=numLists) {
33
+ throw new RuntimeException("Expected " + numLists + " lists, but instead got " + delegates.length + " lists");
34
+ }
35
return new ComboList(delegates, index);
36
37
0 commit comments