dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06676
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1851: Removed unused code
------------------------------------------------------------
revno: 1851
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Wed 2010-07-14 16:36:43 +0200
message:
Removed unused code
modified:
dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/XMLPreConverter.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/xml/XMLPreConverter.java'
--- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/XMLPreConverter.java 2010-07-13 12:59:44 +0000
+++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/xml/XMLPreConverter.java 2010-07-14 14:36:43 +0000
@@ -35,12 +35,13 @@
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
+
import javax.xml.namespace.QName;
import javax.xml.stream.XMLInputFactory;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
-import javax.xml.transform.URIResolver;
import javax.xml.transform.stream.StreamSource;
+
import org.amplecode.staxwax.transformer.TransformerTask;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -50,7 +51,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
-
/**
* GenericXMLConvertor transforms imported foreign XML to dxf.
*
@@ -59,7 +59,6 @@
@Component("preConverter")
public class XMLPreConverter
{
-
private final Log log = LogFactory.getLog( XMLPreConverter.class );
public static final int BUFFER_SIZE = 2000;
@@ -69,6 +68,7 @@
// -------------------------------------------------------------------------
// Named XSLT parameters available to xslt stylesheets
// -------------------------------------------------------------------------
+
// Current timestamp
public static final String TIMESTAMP = "timestamp";
// url base where dxf metadata snapshots are found
@@ -83,12 +83,9 @@
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
- @Autowired
- protected XSLTLocator xsltLocator;
-
- @Autowired
- protected URIResolver resolver;
-
+
+ @Autowired
+ private XSLTLocator xsltLocator;
public QName getDocumentRoot(BufferedInputStream xmlDataStream) throws ImportException
{
@@ -158,7 +155,5 @@
{
throw new ImportException( "Failed to transform stream", ex );
}
-
}
-
}