Skip to content

Commit

Permalink
HpackDecoderTest cleanup
Browse files Browse the repository at this point in the history
Motivation:
public ExpectedException fields should be final.
setUp method signature has a throws, but it isn't necessary
  • Loading branch information
Scottmitch authored and normanmaurer committed Jan 19, 2018
1 parent 61dba95 commit 322a062
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

public class HpackDecoderTest {
@Rule
public ExpectedException expectedException = ExpectedException.none();
public final ExpectedException expectedException = ExpectedException.none();

private HpackDecoder hpackDecoder;
private Http2Headers mockHeaders;
Expand All @@ -78,7 +78,7 @@ private void decode(String encoded) throws Http2Exception {
}

@Before
public void setUp() throws Http2Exception {
public void setUp() {
hpackDecoder = new HpackDecoder(8192, 32);
mockHeaders = mock(Http2Headers.class);
}
Expand Down

0 comments on commit 322a062

Please sign in to comment.