]> source.dussan.org Git - jgit.git/commit
HttpClientConnectionTest: Throw UnsupportedOperationException for unused methods 73/127973/5
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 24 Aug 2018 02:38:25 +0000 (11:38 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 26 Aug 2018 23:52:34 +0000 (08:52 +0900)
commite5b72a4d36284230c69363d89bd9d9db0bfbd82f
treeaf097f83336fd112bd0821d43a6d474c8b5056f6
parent0a13545966fb72e0900180e037e90ed2dcc637a4
HttpClientConnectionTest: Throw UnsupportedOperationException for unused methods

The HttpResponseMock class is only used in a single test to assert
on the expected headers. All of its overridden methods are empty, and
this results in warnings in Eclipse:

  'Empty block should be documented'

Rather than adding "// Not used" comments, change all of the methods'
implementations to throw UnsupportedOperationException. This not only
gets rid of the warnings, but also makes it explicit that we don't
intend any of them to actually be called.

Change-Id: I8fe06b155e0809bb3507e4e28b00fcc4f9333b0b
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/transport/http/apache/HttpClientConnectionTest.java