dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03761
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1247: Removed debug code
------------------------------------------------------------
revno: 1247
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2009-12-18 09:56:52 +0100
message:
Removed debug code
modified:
dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dxf/converter/CategoryComboCategoryAssociationConverter.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-importexport/src/main/java/org/hisp/dhis/importexport/dxf/converter/CategoryComboCategoryAssociationConverter.java'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dxf/converter/CategoryComboCategoryAssociationConverter.java 2009-12-18 08:47:45 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dxf/converter/CategoryComboCategoryAssociationConverter.java 2009-12-18 08:56:52 +0000
@@ -107,9 +107,9 @@
public void write( XMLWriter writer, ExportParams params )
{
Collection<DataElementCategoryCombo> categoryCombos = categoryService.getDataElementCategoryCombos( params.getCategoryCombos() );
- System.out.println( "catcom size " + categoryCombos.size() );
+
Collection<DataElementCategory> categories = categoryService.getDataElementCategories( params.getCategories() );
- System.out.println( "cat size " + categories.size() );
+
if ( categoryCombos != null && categoryCombos.size() > 0 && categories != null && categories.size() > 0 )
{
writer.openElement( COLLECTION_NAME );
@@ -122,10 +122,8 @@
for ( DataElementCategory category : categoryCombo.getCategories() )
{
- System.out.println( "cat name "+ category.getName() );
if ( categories.contains( category ) )
{
- System.out.println( "contains");
writer.openElement( ELEMENT_NAME );
writer.writeElement( FIELD_CATEGORY_COMBO, String.valueOf( categoryCombo.getId() ) );