Skip to content

Commit

Permalink
Throw only specific exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 12, 2022
1 parent 59e9704 commit 2111ebd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package edu.hm.hafner.analysis.parser.checkstyle;

import java.io.StringWriter;
import java.lang.reflect.InvocationTargetException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
Expand Down Expand Up @@ -35,8 +36,8 @@ public class TopicRule extends NodeCreateRule {
}

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void end(final String namespace, final String name) throws Exception {
public void end(final String namespace, final String name)
throws TransformerException, InvocationTargetException, NoSuchMethodException, IllegalAccessException {
Element subsection = getDigester().pop();
String description = extractNodeContent(subsection);

Expand Down

0 comments on commit 2111ebd

Please sign in to comment.