Skip to content

Commit e8ccf0b

Browse files
committed
Code cleanup
1 parent 40c4ad3 commit e8ccf0b

File tree

5 files changed

+5
-30
lines changed

5 files changed

+5
-30
lines changed

src/main/java/org/sourcelab/kafka/connect/apiclient/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* Also allows for configuring an optional proxy with or without authentication.
2424
*/
25-
public class Configuration {
25+
public final class Configuration {
2626
// Defines the URL/Hostname of Kafka-Connect
2727
private final String apiHost;
2828

src/main/java/org/sourcelab/kafka/connect/apiclient/request/dto/ConnectorPluginConfigValidation.java

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/main/java/org/sourcelab/kafka/connect/apiclient/rest/RestResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Represents the response from the API.
2222
*/
23-
public class RestResponse {
23+
public final class RestResponse {
2424
private final String responseStr;
2525
private final int httpCode;
2626

src/main/java/org/sourcelab/kafka/connect/apiclient/rest/handlers/RestResponseHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* Handles parsing a response to RestResponse object.
3232
*/
33-
public class RestResponseHandler implements ResponseHandler<RestResponse> {
33+
public final class RestResponseHandler implements ResponseHandler<RestResponse> {
3434
private static final Logger logger = LoggerFactory.getLogger(RestResponseHandler.class);
3535

3636
@Override
@@ -46,7 +46,7 @@ public RestResponse handleResponse(final HttpResponse response) {
4646

4747
// Construct return object
4848
return new RestResponse(responseStr, statusCode);
49-
} catch (IOException exception) {
49+
} catch (final IOException exception) {
5050
logger.error("Failed to read entity: {}", exception.getMessage(), exception);
5151
// TODO throw exception
5252
return null;

src/main/java/org/sourcelab/kafka/connect/apiclient/rest/handlers/StringResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Returns response as a string.
2929
*/
30-
public class StringResponseHandler implements ResponseHandler<String> {
30+
public final class StringResponseHandler implements ResponseHandler<String> {
3131
@Override
3232
public String handleResponse(final HttpResponse response) throws IOException {
3333

0 commit comments

Comments
 (0)