remove generated code on clean; sonar fixes

This commit is contained in:
Andreas Penski (init) 2020-04-29 17:10:30 +02:00
parent d0000fc698
commit a739868c3b
4 changed files with 28 additions and 18 deletions

12
pom.xml
View file

@ -145,6 +145,18 @@
</resources> </resources>
<plugins> <plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>src/generated/java</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>

View file

@ -2,7 +2,7 @@
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 generiert // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2020.04.29 um 03:45:08 PM CEST // Generiert: 2020.04.29 um 05:05:04 PM CEST
// //
@ -15,17 +15,13 @@ import javax.xml.namespace.QName;
/** /**
* This object contains factory methods for each * This object contains factory methods for each Java content interface and Java element interface generated in the
* Java content interface and Java element interface * de.kosit.validationtool.model.daemon package.
* generated in the de.xoev.de.validator.framework._1.daemon package. * <p>
* <p>An ObjectFactory allows you to programatically * An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content.
* construct new instances of the Java representation * The Java representation of XML content can consist of schema derived interfaces and classes representing the binding
* for XML content. The Java representation of XML * of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in
* content can consist of schema derived interfaces * this class.
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
* *
*/ */
@XmlRegistry @XmlRegistry
@ -34,7 +30,8 @@ public class ObjectFactory {
private final static QName _Health_QNAME = new QName("http://www.xoev.de/de/validator/framework/1/daemon", "health"); private final static QName _Health_QNAME = new QName("http://www.xoev.de/de/validator/framework/1/daemon", "health");
/** /**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: de.xoev.de.validator.framework._1.daemon * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package:
* de.kosit.validationtool.model.daemon
* *
*/ */
public ObjectFactory() { public ObjectFactory() {
@ -44,7 +41,7 @@ public class ObjectFactory {
* Create an instance of {@link HealthType } * Create an instance of {@link HealthType }
* *
*/ */
public static HealthType createHealthType() { public HealthType createHealthType() {
return new HealthType(); return new HealthType();
} }
@ -52,7 +49,7 @@ public class ObjectFactory {
* Create an instance of {@link ApplicationType } * Create an instance of {@link ApplicationType }
* *
*/ */
public static ApplicationType createApplicationType() { public ApplicationType createApplicationType() {
return new ApplicationType(); return new ApplicationType();
} }
@ -60,7 +57,7 @@ public class ObjectFactory {
* Create an instance of {@link MemoryType } * Create an instance of {@link MemoryType }
* *
*/ */
public static MemoryType createMemoryType() { public MemoryType createMemoryType() {
return new MemoryType(); return new MemoryType();
} }
@ -73,7 +70,7 @@ public class ObjectFactory {
* the new instance of {@link JAXBElement }{@code <}{@link HealthType }{@code >} * the new instance of {@link JAXBElement }{@code <}{@link HealthType }{@code >}
*/ */
@XmlElementDecl(namespace = "http://www.xoev.de/de/validator/framework/1/daemon", name = "health") @XmlElementDecl(namespace = "http://www.xoev.de/de/validator/framework/1/daemon", name = "health")
public static JAXBElement<HealthType> createHealth(final HealthType value) { public JAXBElement<HealthType> createHealth(HealthType value) {
return new JAXBElement<HealthType>(_Health_QNAME, HealthType.class, null, value); return new JAXBElement<HealthType>(_Health_QNAME, HealthType.class, null, value);
} }

View file

@ -36,5 +36,5 @@ public class DefaultConfiguration implements Configuration {
private String date; private String date;
public Map<String, Object> additionalParameters; private Map<String, Object> additionalParameters;
} }

View file

@ -75,6 +75,7 @@ public class SourceInput extends AbstractInput {
return (ss.getInputStream() != null && ss.getInputStream().available() == 0) return (ss.getInputStream() != null && ss.getInputStream().available() == 0)
|| (ss.getReader() != null && !ss.getReader().ready()); || (ss.getReader() != null && !ss.getReader().ready());
} catch (final IOException e) { } catch (final IOException e) {
log.error("Error checking consumed state", e);
return true; return true;
} }
} }