dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40366
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20457: minor csv mapper fix
------------------------------------------------------------
revno: 20457
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-02 10:59:43 +0700
message:
minor csv mapper fix
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/csv/DefaultCsvEventService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/csv/DefaultCsvEventService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/csv/DefaultCsvEventService.java 2015-10-01 11:50:55 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/csv/DefaultCsvEventService.java 2015-10-02 03:59:43 +0000
@@ -52,15 +52,10 @@
*/
public class DefaultCsvEventService implements CsvEventService
{
- private static CsvMapper CSV_MAPPER = new CsvMapper();
+ private static CsvMapper CSV_MAPPER = new CsvMapper().enable( CsvParser.Feature.WRAP_AS_ARRAY );
private static CsvSchema CSV_SCHEMA = CSV_MAPPER.schemaFor( CsvEventDataValue.class ).withLineSeparator( "\n" );
- static
- {
- CSV_MAPPER.enable( CsvParser.Feature.WRAP_AS_ARRAY );
- }
-
@Override
public void writeEvents( OutputStream outputStream, Events events, boolean withHeader ) throws IOException
{