11/*
2- * Licensed to the Apache Software Foundation (ASF) under one or more
3- * contributor license agreements. See the NOTICE file distributed with
4- * this work for additional information regarding copyright ownership.
5- * The ASF licenses this file to You under the Apache License, Version 2.0
6- * (the "License"); you may not use this file except in compliance with
7- * the License. You may obtain a copy of the License at
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
89 *
9- * http ://www.apache.org/licenses/LICENSE-2.0
10+ * https ://www.apache.org/licenses/LICENSE-2.0
1011 *
11- * Unless required by applicable law or agreed to in writing, software
12- * distributed under the License is distributed on an "AS IS" BASIS,
13- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14- * See the License for the specific language governing permissions and
15- * limitations under the License.
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
1618 */
1719package org .apache .commons .csv ;
1820import static org .junit .jupiter .api .Assertions .assertEquals ;
@@ -33,13 +35,13 @@ public void parseThreeBytes() throws IOException {
3335 .setDelimiter (',' )
3436 .setQuote ('\'' )
3537 .get ();
36- CSVParser parser = new CSVParser .Builder ()
38+ final CSVParser parser = new CSVParser .Builder ()
3739 .setFormat (format )
3840 .setReader (getTestInput ("org/apache/commons/csv/CSV-196/japanese.csv" ))
3941 .setCharset (StandardCharsets .UTF_8 )
4042 .setEnableByteTracking (true )
4143 .get ();
42- long [] charByteKey = {0 , 89 , 242 , 395 };
44+ final long [] charByteKey = {0 , 89 , 242 , 395 };
4345 int idx = 0 ;
4446 for (CSVRecord record : parser ) {
4547 assertEquals (charByteKey [idx ++], record .getBytePosition ());
@@ -54,13 +56,13 @@ public void parseFourBytes() throws IOException {
5456 .setDelimiter (',' )
5557 .setQuote ('\'' )
5658 .get ();
57- CSVParser parser = new CSVParser .Builder ()
59+ final CSVParser parser = new CSVParser .Builder ()
5860 .setFormat (format )
5961 .setReader (getTestInput ("org/apache/commons/csv/CSV-196/emoji.csv" ))
6062 .setCharset (StandardCharsets .UTF_8 )
6163 .setEnableByteTracking (true )
6264 .get ();
63- long [] charByteKey = {0 , 84 , 701 , 1318 , 1935 };
65+ final long [] charByteKey = {0 , 84 , 701 , 1318 , 1935 };
6466 int idx = 0 ;
6567 for (CSVRecord record : parser ) {
6668 assertEquals (charByteKey [idx ++], record .getBytePosition ());
0 commit comments