Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/api_assured/ApiUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static utils.reflection.ReflectionUtilities.iterativeConditionalInvocation;

@SuppressWarnings("unused")
@Deprecated(since = "1.7.4")
public abstract class ApiUtilities extends Caller {

public static Printer log = new Printer(ApiUtilities.class);
Expand Down
13 changes: 6 additions & 7 deletions src/main/java/api_assured/Caller.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
import retrofit2.Call;
import retrofit2.Response;
import utils.*;
import utils.reflection.ReflectionUtilities;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Objects;

import static utils.MappingUtilities.Json.*;
import static utils.mapping.MappingUtilities.Json.fromJsonString;
import static utils.mapping.MappingUtilities.Json.getJsonString;
import static utils.reflection.ReflectionUtilities.getPreviousMethodName;
import static utils.StringUtilities.Color.*;
import static utils.reflection.ReflectionUtilities.isOfType;
Expand All @@ -29,6 +27,7 @@
* @version 1.4.0 (Documented in 1.4.0, released in an earlier version)
*/
@SuppressWarnings("unused")
@Deprecated(since = "1.7.4")
public abstract class Caller {

/**
Expand Down Expand Up @@ -175,7 +174,7 @@ private static <T> Response<T> getResponse(Call<T> call, boolean printBody) thro
* @return A deserialized error object instance of type {@code Model}.
* @throws RuntimeException if there's an issue processing the error content or deserializing it.
*
* @see MappingUtilities.Json#fromJsonString(String, Class)
* @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class)
*/
@SuppressWarnings("unchecked")
private static <ErrorModel> ErrorModel getErrorObject(Response<?> response, Class<ErrorModel> errorModel) throws JsonProcessingException {
Expand Down Expand Up @@ -253,8 +252,8 @@ private static <ResponseModel> Response<ResponseModel> call(
* @return A deserialized error model instance of type {@code ErrorModel} if a match is found.
* @throws RuntimeException if none of the provided error models match the error content of the response.
*
* @see MappingUtilities.Json#fromJsonString(String, Class)
* @see MappingUtilities.Json#getJsonStringFor(Object)
* @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class)
* @see utils.mapping.MappingUtilities.Json#getJsonStringFor(Object)
* @see #getErrorObject(Response, Class)
*/
@SuppressWarnings("unchecked")
Expand Down
1 change: 1 addition & 0 deletions src/main/java/api_assured/ResponsePair.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
* @param <Response> expected Response-SuccessModel-
* @param <ErrorBody> potential error body
*/
@Deprecated(since = "1.7.4")
public record ResponsePair<Response, ErrorBody>(Response response, ErrorBody errorBody) { }
1 change: 1 addition & 0 deletions src/main/java/api_assured/ServiceGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* @version 1.4.0 (Documented in 1.4.0, released in version 1.0.0)
*/
@SuppressWarnings({"unused", "UnusedReturnValue"})
@Deprecated(since = "1.7.4")
public class ServiceGenerator {

OkHttpClient client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/**
* This class represents an exception that is thrown when a call fails.
*/
@Deprecated(since = "1.7.4")
public class FailedCallException extends RuntimeException {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/**
* This class represents an exception that is thrown when an error occurs in JavaUtilities.
*/
@Deprecated(since = "1.7.4")
public class JavaUtilitiesException extends RuntimeException {

/**
Expand Down
Loading