[Minor] Automated Code cleanup: unused imports
This commit is contained in:
parent
e8235b8f7b
commit
3baeb04655
|
@ -18,7 +18,6 @@ import li.strolch.utils.helper.XmlHelper;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
public class StrolchBootstrapper extends DefaultHandler {
|
||||
|
|
|
@ -19,7 +19,6 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
import li.strolch.utils.dbc.DBC;
|
||||
|
|
|
@ -21,7 +21,6 @@ import java.util.function.Consumer;
|
|||
import li.strolch.model.Tags;
|
||||
import li.strolch.utils.iso8601.ISO8601FormatFactory;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.persistence.xml.model;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import li.strolch.model.Order;
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.persistence.xml.model;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import li.strolch.model.audit.Audit;
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.persistence.xml.model;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import li.strolch.model.log.LogMessage;
|
||||
|
|
|
@ -27,7 +27,6 @@ import li.strolch.model.Locator;
|
|||
import li.strolch.model.Tags;
|
||||
import li.strolch.utils.iso8601.ISO8601;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.persistence.xml.model;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import li.strolch.model.Order;
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.persistence.xml.model;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
|
||||
import li.strolch.model.Order;
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
package li.strolch.privilege.model;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ import li.strolch.utils.dbc.DBC;
|
|||
import li.strolch.utils.helper.XmlHelper;
|
||||
import li.strolch.utils.iso8601.ISO8601;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
package li.strolch.privilege.xml;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
// TODO write JavaDoc...
|
||||
public interface ElementParser {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
package li.strolch.privilege.xml;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
public abstract class ElementParserAdapter implements ElementParser {
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ package li.strolch.privilege.xml;
|
|||
import static li.strolch.privilege.helper.XmlConstants.*;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Comparator;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import static li.strolch.utils.helper.StringHelper.UNDERLINE;
|
|||
|
||||
import javax.xml.stream.XMLStreamWriter;
|
||||
import java.io.File;
|
||||
import java.io.FilenameFilter;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.text.MessageFormat;
|
||||
|
|
|
@ -18,7 +18,6 @@ package li.strolch.migrations;
|
|||
import static li.strolch.runtime.StrolchConstants.SYSTEM_USER_AGENT;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package li.strolch.report;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
import static java.util.stream.Collectors.toSet;
|
||||
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||
import static org.junit.Assert.*;
|
||||
|
|
|
@ -5,7 +5,6 @@ import static org.junit.Assert.assertNotNull;
|
|||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import li.strolch.model.Order;
|
||||
import li.strolch.model.ParameterBag;
|
||||
|
|
|
@ -19,7 +19,6 @@ import static li.strolch.model.StrolchModelConstants.TEMPLATE;
|
|||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FilenameFilter;
|
||||
|
||||
import li.strolch.privilege.model.Certificate;
|
||||
import li.strolch.service.*;
|
||||
|
|
|
@ -344,8 +344,8 @@ public class IndentingXMLStreamWriter extends StreamWriterDelegate implements In
|
|||
if (this.depth > 0 && this.stack[this.depth] == WROTE_MARKUP) { // but not data
|
||||
try {
|
||||
writeNewLine(this.depth - 1);
|
||||
} catch (Exception ignored) {
|
||||
ignored.printStackTrace();
|
||||
} catch (Exception ignorable) {
|
||||
logger.error("Ignoring exception " + ExceptionHelper.getExceptionMessage(ignorable, true), ignorable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -366,8 +366,8 @@ public class IndentingXMLStreamWriter extends StreamWriterDelegate implements In
|
|||
if (this.stack[this.depth = 0] == WROTE_MARKUP) { // but not data
|
||||
try {
|
||||
writeNewLine(0);
|
||||
} catch (Exception ignored) {
|
||||
ignored.printStackTrace();
|
||||
} catch (Exception ignorable) {
|
||||
logger.error("Ignoring exception " + ExceptionHelper.getExceptionMessage(ignorable, true), ignorable);
|
||||
}
|
||||
}
|
||||
this.stack[this.depth] = 0; // start fresh
|
||||
|
|
|
@ -7,7 +7,7 @@ import li.strolch.utils.helper.StringHelper;
|
|||
|
||||
/**
|
||||
* This class has been adapted from org.osgi.framework.Version
|
||||
*
|
||||
* <p>
|
||||
* Version identifier.
|
||||
*
|
||||
* <p>
|
||||
|
@ -71,8 +71,8 @@ public class Version implements Comparable<Version> {
|
|||
public static final Version emptyVersion = new Version(0, 0, 0);
|
||||
|
||||
/**
|
||||
* Creates a version identifier from the specified numerical components. This instance will have {@link
|
||||
* #isOsgiStyle()} return false
|
||||
* Creates a version identifier from the specified numerical components. This instance will have
|
||||
* {@link #isOsgiStyle()} return false
|
||||
*
|
||||
* <p>
|
||||
* The qualifier is set to the empty string.
|
||||
|
@ -183,9 +183,7 @@ public class Version implements Comparable<Version> {
|
|||
}
|
||||
}
|
||||
} catch (NoSuchElementException e) {
|
||||
IllegalArgumentException iae = new IllegalArgumentException("invalid format: " + version);
|
||||
iae.initCause(e);
|
||||
throw iae;
|
||||
throw new IllegalArgumentException("invalid format: " + version, e);
|
||||
}
|
||||
|
||||
this.major = maj;
|
||||
|
@ -447,8 +445,8 @@ public class Version implements Comparable<Version> {
|
|||
* Returns the string representation of this version identifier.
|
||||
*
|
||||
* <p>
|
||||
* The format of the version string will be {@code major.minor.micro} if qualifier is the empty string or {@code
|
||||
* major.minor.micro.qualifier} otherwise.
|
||||
* The format of the version string will be {@code major.minor.micro} if qualifier is the empty string or
|
||||
* {@code major.minor.micro.qualifier} otherwise.
|
||||
*
|
||||
* @return The string representation of this version identifier.
|
||||
*/
|
||||
|
|
|
@ -20,9 +20,7 @@ import java.io.File;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
package li.strolch.rest.filters;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.MessageFormat;
|
||||
|
||||
import jakarta.annotation.Priority;
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
*/
|
||||
package li.strolch.rest.filters;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
import jakarta.ws.rs.container.ContainerResponseContext;
|
||||
import jakarta.ws.rs.container.ContainerResponseFilter;
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
*/
|
||||
package li.strolch.rest.filters;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import jakarta.annotation.Priority;
|
||||
import jakarta.ws.rs.Priorities;
|
||||
import jakarta.ws.rs.container.ContainerRequestContext;
|
||||
|
|
|
@ -21,7 +21,6 @@ import javax.xml.stream.XMLStreamWriter;
|
|||
import li.strolch.xmlpers.api.SaxParser;
|
||||
import li.strolch.xmlpers.test.model.Book;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,6 @@ import li.strolch.xmlpers.api.SaxParser;
|
|||
import li.strolch.xmlpers.test.model.MyModel;
|
||||
import li.strolch.xmlpers.test.model.MyParameter;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
class MyModelSaxParser extends DefaultHandler implements SaxParser<MyModel> {
|
||||
|
|
Loading…
Reference in New Issue