Skip to content

Commit

Permalink
Merge 26f45b6 into 2651123
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Apr 13, 2021
2 parents 2651123 + 26f45b6 commit 0861ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -179,8 +179,7 @@ public Iterator<Neuron> iterator() {
* @see NeuronIdentifierComparator
*/
public Collection<Neuron> getNeurons(Comparator<Neuron> comparator) {
final List<Neuron> neurons = new ArrayList<>();
neurons.addAll(neuronMap.values());
final List<Neuron> neurons = new ArrayList<>(neuronMap.values());

Collections.sort(neurons, comparator);

Expand Down
Expand Up @@ -603,7 +603,7 @@ protected void dropPhase1Objective() {
}

// remove the columns in reverse order so the indices are correct
Integer[] drop = columnsToDrop.toArray(new Integer[columnsToDrop.size()]);
Integer[] drop = columnsToDrop.toArray(new Integer[0]);
for (int i = drop.length - 1; i >= 0; i--) {
columnLabels.remove((int) drop[i]);
}
Expand Down

0 comments on commit 0861ca3

Please sign in to comment.