Commit 54dfc898 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Remove unthrown exceptions.

parent d09bfefe
......@@ -51,7 +51,7 @@ public class ResourceServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
HttpServletResponse response) throws IOException {
HttpServletRequestWrapper requestWrapper =
new HttpServletRequestWrapper(request);
HttpServletResponseWrapper responseWrapper =
......
......@@ -14,7 +14,6 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CodingErrorAction;
import java.nio.charset.StandardCharsets;
......@@ -340,14 +339,13 @@ public class LookupService {
}
private BufferedReader createBufferedReaderFromUtf8File(File utf8File)
throws FileNotFoundException, CharacterCodingException {
throws FileNotFoundException {
return this.createBufferedReaderFromFile(utf8File,
StandardCharsets.UTF_8.newDecoder());
}
private BufferedReader createBufferedReaderFromIso88591File(
File iso88591File) throws FileNotFoundException,
CharacterCodingException {
File iso88591File) throws FileNotFoundException {
return this.createBufferedReaderFromFile(iso88591File,
StandardCharsets.ISO_8859_1.newDecoder());
}
......
......@@ -87,7 +87,7 @@ public class ResourceServletTest {
private int errorStatusCode;
protected void sendError(int errorStatusCode) throws IOException {
protected void sendError(int errorStatusCode) {
this.errorStatusCode = errorStatusCode;
}
......@@ -385,7 +385,7 @@ public class ResourceServletTest {
}
@Test(timeout = 100)
public void testValidSummaryRelay() throws IOException {
public void testValidSummaryRelay() {
this.runTest("/summary");
assertEquals("2013-04-24 12:00:00",
this.summaryDocument.relays_published);
......
......@@ -33,7 +33,7 @@ public class NodeDetailsStatusUpdaterTest {
}
@Test
public void testExitReset() throws Exception {
public void testExitReset() {
NodeDetailsStatusUpdater ndsu = new NodeDetailsStatusUpdater(null, null);
DescriptorParser dp = DescriptorSourceFactory.createDescriptorParser();
String descString = RELAY1 + PUB1 + RELAY2 + POLICY1 + RELAY3;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment