Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit fbaf351

Browse files
committed
Merge branch '2.7'
2 parents 8c7213a + 87bb0d1 commit fbaf351

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

release-notes/CREDITS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Oliver Röss (cloudyday@github)
5656
* Reported #98: Escape char is not being escaped during serialization
5757
(2.6.4)
5858

59-
<<<<<<< HEAD
6059
Justo Ruiz Ferrer (jrferrer@github)
6160

6261
* Contributed #89: Allow choice of using header-line declaration to reorder columns
@@ -84,3 +83,8 @@ Brian Moriarty (morbrian@github)
8483

8584
* Contributed #106: Null fields are always ignored when serializing list of objects
8685
(2.7.0)
86+
87+
Peter Ansell (ansell@github)
88+
89+
* Contributed fix for #128: Write out headers even if no data rows written
90+
(2.7.7)

release-notes/VERSION

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ No changes since 2.8.0.
1919

2020
- Removed unused `CsvEncoding` class.
2121

22+
2.7.7 (not yet released)
23+
24+
#128: Write out headers even if no data rows written
25+
(contributed by Peter A)
26+
2227
2.7.6 (23-Jul-2016)
2328
2.7.5 (11-Jun-2016)
2429

src/main/java/com/fasterxml/jackson/dataformat/csv/CsvGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ public void close() throws IOException
433433
if (_handleFirstLine) {
434434
_handleFirstLine();
435435
}
436-
437436
_writer.close(_ioContext.isResourceManaged() || isEnabled(JsonGenerator.Feature.AUTO_CLOSE_TARGET));
438437
}
439438

0 commit comments

Comments
 (0)