mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
fix code style violations
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
*/
|
||||
package org.dspace.importer.external.crossref;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@@ -20,14 +28,6 @@ import org.w3c.dom.NodeList;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
public class CrossRefAbstractProcessor implements JsonPathMetadataProcessor {
|
||||
|
||||
private final static Logger log = LogManager.getLogger();
|
||||
@@ -88,8 +88,7 @@ public class CrossRefAbstractProcessor implements JsonPathMetadataProcessor {
|
||||
sb.append(childElement.getTextContent());
|
||||
sb.append("\n");
|
||||
}
|
||||
}
|
||||
else if (StringUtils.equals(nodeName, "jats:sec")) {
|
||||
} else if (StringUtils.equals(nodeName, "jats:sec")) {
|
||||
NodeList secElements = childElement.getChildNodes();
|
||||
for (int j = 0; j < secElements.getLength(); j++) {
|
||||
Node secChildElement = secElements.item(j);
|
||||
|
Reference in New Issue
Block a user