Skip to content

Commit

Permalink
Inline incrementation of index in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Aug 14, 2022
1 parent 27d24bb commit 8afc3be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redempt/ordinate/parser/ReflectiveCommandDispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ private <T> Consumer<Object[]> createArrayTransformer(Class<?> componentType, in
Object arr = Array.newInstance(componentType, collection.size());
int i = 0;
for (T val : collection) {
Array.set(arr, i, val);
i++;
Array.set(arr, i++, val);
}
array[slot] = arr;
};
Expand Down

0 comments on commit 8afc3be

Please sign in to comment.