Skip to content

Commit a444404

Browse files
committed
Update CSVDecoder.
1 parent 290504c commit a444404

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kilo-client/src/main/java/org/httprpc/kilo/io/CSVDecoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ public Map<String, String> next() {
6767
throw new NoSuchElementException();
6868
}
6969

70-
var next = new LinkedHashMap<String, String>();
70+
var n = keys.size();
7171

72-
try {
73-
var n = keys.size();
72+
var next = new LinkedHashMap<String, String>(n);
7473

74+
try {
7575
var i = 0;
7676

7777
while (c != EOF) {

0 commit comments

Comments
 (0)