Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
selamanse committed Aug 1, 2023
1 parent a81e23e commit b375064
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.github.jcustenborder.kafka.connect</groupId>
<artifactId>kafka-connect-parent</artifactId>
<version>2.8.0-1</version>
<version>3.3.1-1</version>
</parent>
<artifactId>kafka-connect-transform-xml</artifactId>
<version>0.1.5-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,23 @@
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;

import javax.xml.bind.*;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathFactory;
import java.io.*;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.File;
import java.io.StringReader;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
import org.slf4j.LoggerFactory;
import org.xml.sax.InputSource;

import javax.tools.*;
import javax.tools.Diagnostic;
import javax.tools.DiagnosticCollector;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import java.io.Closeable;
Expand All @@ -40,9 +45,14 @@
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.*;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.Collections;

public class XSDCompiler implements Closeable {
private static final Logger log = LoggerFactory.getLogger(XSDCompiler.class);
Expand All @@ -53,11 +63,12 @@ public class XSDCompiler implements Closeable {

public XSDCompiler(FromXmlConfig config) {
this.config = config;
try{
try {
this.tempDirectory = Files.createTempDirectory(config.xjcPackage).toFile();
} catch (IOException tempE) {
throw new IllegalStateException(tempE);
}

try {
this.classLoader = new URLClassLoader(
new URL[]{
Expand Down

0 comments on commit b375064

Please sign in to comment.