Skip to content

Commit

Permalink
Removed unused throws declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
robtimus committed Jul 27, 2024
1 parent 6a4b4e5 commit 99c4f06
Showing 1 changed file with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ void testWithProxy() throws MalformedURLException {
@Nested
class ParseURL {

@SuppressWarnings("unused")
@Test
void testNoDataProtocol() throws MalformedURLException {
void testNoDataProtocol() {
Handler handler = spy(new Handler());

String spec = "http://www.google.com/";
Expand All @@ -311,9 +310,8 @@ void testNoDataProtocol() throws MalformedURLException {
verify(handler).parseURL(any(URL.class), eq(spec), eq(5), eq(spec.length()));
}

@SuppressWarnings("unused")
@Test
void testCommaPresentInAnchor() throws MalformedURLException {
void testCommaPresentInAnchor() {
Handler handler = spy(new Handler());

String path = "hello+world";
Expand All @@ -325,9 +323,8 @@ void testCommaPresentInAnchor() throws MalformedURLException {
verify(handler).parseURL(any(URL.class), eq(specWithAnchor), eq(5), eq(spec.length()));
}

@SuppressWarnings("unused")
@Test
void testNoCommaPresent() throws MalformedURLException {
void testNoCommaPresent() {
Handler handler = spy(new Handler());

String path = "hello+world";
Expand All @@ -338,9 +335,8 @@ void testNoCommaPresent() throws MalformedURLException {
verify(handler).parseURL(any(URL.class), eq(spec), eq(5), eq(spec.length()));
}

@SuppressWarnings("unused")
@Test
void testInvalidCharset() throws MalformedURLException {
void testInvalidCharset() {
Handler handler = spy(new Handler());

String path = "text/plain;charset=something+invalid,hello+world";
Expand Down Expand Up @@ -393,9 +389,8 @@ void testBase64NoMediaType() throws MalformedURLException {
verify(handler).parseURL(url, spec, 5, spec.length());
}

@SuppressWarnings("unused")
@Test
void testInvalidBase64NoMediaType() throws MalformedURLException {
void testInvalidBase64NoMediaType() {
Handler handler = spy(new Handler());

byte[] bytes = new byte[1024];
Expand Down Expand Up @@ -436,9 +431,8 @@ void testBase64MediaTypeNoParameters() throws MalformedURLException {
verify(handler).parseURL(url, spec, 5, spec.length());
}

@SuppressWarnings("unused")
@Test
void testInvalidBase64MediaTypeNoParameters() throws MalformedURLException {
void testInvalidBase64MediaTypeNoParameters() {
Handler handler = spy(new Handler());

byte[] bytes = new byte[1024];
Expand Down Expand Up @@ -479,9 +473,8 @@ void testBase64MediaTypeWithParameters() throws MalformedURLException {
verify(handler).parseURL(url, spec, 5, spec.length());
}

@SuppressWarnings("unused")
@Test
void testInvalidBase64MediaTypeWithParameters() throws MalformedURLException {
void testInvalidBase64MediaTypeWithParameters() {
Handler handler = spy(new Handler());

byte[] bytes = new byte[1024];
Expand Down

0 comments on commit 99c4f06

Please sign in to comment.