Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsessanchez committed Nov 8, 2023
1 parent 877153c commit c9f9a99
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

/** Base class for request configuration */
public abstract class BaseRequestConfiguration {
/**
* Default constructor
*/
public BaseRequestConfiguration() {
// default empty constructor
}
/** Request headers */
@Nullable
public RequestHeaders headers = new RequestHeaders();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* A map that is case-insensitive on the keys
*/
public class CaseInsensitiveMap implements Map<String, Set<String>>{
/**
* Default constructor
*/
public CaseInsensitiveMap() {
// default constructor
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
* Represents a multipart body for a request or a response.
*/
public class MultipartBody implements Parsable {
/**
* Creates a new instance of the MultipartBody class.
*/
public MultipartBody() {
// default empty constructor
}
@Nonnull
private final String boundary = UUID.randomUUID().toString().replace("-", "");
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
* The {@code ResponseHandler} implementation to handle native response objects
*/
public class NativeResponseHandler implements ResponseHandler {
/**
* Default constructor
*/
public NativeResponseHandler() {
// default empty constructor
}
private Object value;
private HashMap<String, ParsableFactory<? extends Parsable>> errorMappings;
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public interface ResponseHandler {
* @param errorMappings the error mappings for the response to use when deserializing failed responses bodies. Where an error code like 401 applies specifically to that status code, a class code like 4XX applies to all status codes within the range if an the specific error code is not present.
* @param <NativeResponseType> The type of the native response object.
* @param <ModelType> The type of the response model object.
* @return The deserialized response model object.
*/
@Nullable
<NativeResponseType, ModelType> ModelType handleResponse(@Nonnull final NativeResponseType response, @Nullable final HashMap<String, ParsableFactory<? extends Parsable>> errorMappings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ private HeadersCompatibility() {
* @param headers the okhttp3 headers
* @return the ResponseHeaders object
*/
@Nonnull
public static ResponseHeaders getResponseHeaders(@Nonnull final okhttp3.Headers headers) {
Objects.requireNonNull(headers);
final ResponseHeaders responseHeaders = new ResponseHeaders();
Expand All @@ -29,13 +30,13 @@ public static ResponseHeaders getResponseHeaders(@Nonnull final okhttp3.Headers
});
return responseHeaders;
}

/**
* INTERNAL METHOD, DO NOT USE DIRECTLY
* Get the request headers from the okhttp3 headers and convert them to a RequestHeaders object
* @param headers the okhttp3 headers
* @return the RequestHeaders object
*/
@Nonnull
public static RequestHeaders getRequestHeaders(@Nonnull final okhttp3.Headers headers) {
Objects.requireNonNull(headers);
final RequestHeaders requestHeaders = new RequestHeaders();
Expand Down

0 comments on commit c9f9a99

Please sign in to comment.