Use try/multi-catch
Change-Id: Icf5042cccb0662d6bd53302800e03211af94c16d
This commit is contained in:
committed by
David Pursehouse
parent
8702786e5a
commit
64cfaf242d
@@ -31,7 +31,6 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.zip.ZipException;
|
||||
|
||||
@@ -66,8 +65,6 @@ class InstallPlugin implements RestModifyView<TopLevelResource, Input> {
|
||||
} else {
|
||||
try {
|
||||
in = new URL(input.url).openStream();
|
||||
} catch (MalformedURLException e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
} catch (IOException e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user