Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 25, 2019
1 parent c27adbf commit ecaa006
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ortools/util/java/vector.i
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
$1->reserve(size);
j ## JavaType *values = jenv->Get ## JavaTypeName ## ArrayElements((j ## JavaType ## Array)$input, NULL);
for (int i = 0; i < size; ++i) {
JavaType value = values[i];
$1->emplace_back(value);
$1->emplace_back(values[i]);
}
jenv->Release ## JavaTypeName ## ArrayElements((j ## JavaType ## Array)$input, values, JNI_ABORT);
}
Expand Down Expand Up @@ -79,8 +78,7 @@
$1.reserve(size);
j ## JavaType *values = jenv->Get ## JavaTypeName ## ArrayElements((j ## JavaType ## Array)$input, NULL);
for (int i = 0; i < size; ++i) {
JavaType value = values[i];
$1.emplace_back(value);
$1.emplace_back(values[i]);
}
jenv->Release ## JavaTypeName ## ArrayElements((j ## JavaType ## Array)$input, values, JNI_ABORT);
}
Expand Down

0 comments on commit ecaa006

Please sign in to comment.