mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
cleanup
This commit is contained in:
parent
2c479eded5
commit
7abc072911
2 changed files with 3 additions and 73 deletions
|
|
@ -6,8 +6,7 @@ import javax.xml.XMLConstants;
|
|||
import javax.xml.validation.SchemaFactory;
|
||||
import javax.xml.validation.Validator;
|
||||
|
||||
import org.xml.sax.SAXNotRecognizedException;
|
||||
import org.xml.sax.SAXNotSupportedException;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
|
|
@ -61,7 +60,7 @@ public abstract class BaseResolvingStrategy implements ResolvingConfigurationStr
|
|||
private void setProperty(final PropertySetter setter, final boolean lenient, final String errorMessage) {
|
||||
try {
|
||||
setter.apply();
|
||||
} catch (final SAXNotRecognizedException | SAXNotSupportedException e) {
|
||||
} catch (final SAXException e) {
|
||||
|
||||
if (lenient) {
|
||||
log.warn(errorMessage);
|
||||
|
|
@ -117,6 +116,6 @@ public abstract class BaseResolvingStrategy implements ResolvingConfigurationStr
|
|||
@FunctionalInterface
|
||||
private interface PropertySetter {
|
||||
|
||||
void apply() throws SAXNotRecognizedException, SAXNotSupportedException;
|
||||
void apply() throws SAXException;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue