Skip to content
Permalink
Browse files
Minor Improvement: (#130)
* System.arraycopy
* Remove redundant initializer
* Use empty array
  • Loading branch information
arturobernalg committed Jul 3, 2021
1 parent af84037 commit 3f6357e8f4fea71c10cca4e01b402f7670b656b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
@@ -184,7 +184,7 @@ public int parseSkifeCSV(final Blackhole bh) throws Exception {
}

private static class CountingReaderCallback implements org.skife.csv.ReaderCallback {
public int count = 0;
public int count;

@Override
public void onRow(final String[] fields) {
@@ -63,7 +63,7 @@ public class PerformanceTest {

private static int max = 11; // skip first test

private static int num = 0; // number of elapsed times recorded
private static int num; // number of elapsed times recorded
private static final long[] ELAPSED_TIMES = new long[max];

private static final CSVFormat format = CSVFormat.EXCEL;
@@ -91,9 +91,7 @@ public static void main(final String [] args) throws Exception {
final String[] tests;
if (argc > 1) {
tests = new String[argc - 1];
for (int i = 1; i < argc; i++) {
tests[i - 1] = args[i];
}
System.arraycopy(args, 1, tests, 0, argc - 1);
} else {
tests = new String[] { "file", "split", "extb", "exts", "csv", "csv-path", "csv-path-db", "csv-url", "lexreset", "lexnew" };
}

0 comments on commit 3f6357e

Please sign in to comment.