Skip to content

Commit 449c521

Browse files
committed
Fix sonar issues #87
1 parent 8f6df42 commit 449c521

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fj-core/src/main/java/org/fugerit/java/core/xml/sax/XMLFactorySAX.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public SAXParser newSAXParser() throws XMLException {
3838
return SafeFunction.getEx( () -> this.factory.newSAXParser(), XMLException.CONVERT_FUN );
3939
}
4040

41-
public static XMLFactorySAX newInstance() throws XMLException {
41+
public static XMLFactorySAX newInstance() {
4242
return newInstance(false, false);
4343
}
4444

4545
public static XMLFactorySAX newInstanceSecure() throws XMLException {
4646
return newInstanceSecure(false);
4747
}
4848

49-
public static XMLFactorySAX newInstance(boolean validating) throws XMLException {
49+
public static XMLFactorySAX newInstance(boolean validating) {
5050
return newInstance(validating, false);
5151
}
5252

fj-core/src/test/java/test/org/fugerit/java/core/xml/sax/TestXmlFactorySAX.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void testFinal() throws XMLException {
6262
}
6363

6464
@Test
65-
public void testEx() throws XMLException {
65+
public void testEx() {
6666
XMLFactorySAX factory = XMLFactorySAX.newInstance();
6767
Assert.assertThrows( XMLException.class, () -> factory.getFeature( "test" ) );
6868
Assert.assertThrows( XMLException.class, () -> factory.setFeature( "test", true ) );

0 commit comments

Comments
 (0)