|
8 | 8 | import retrofit2.Call; |
9 | 9 | import retrofit2.Response; |
10 | 10 | import utils.*; |
11 | | -import utils.reflection.ReflectionUtilities; |
12 | | - |
13 | 11 | import java.io.IOException; |
14 | 12 | import java.nio.charset.StandardCharsets; |
15 | 13 | import java.util.Objects; |
16 | | - |
17 | | -import static utils.MappingUtilities.Json.*; |
| 14 | +import static utils.mapping.MappingUtilities.Json.fromJsonString; |
| 15 | +import static utils.mapping.MappingUtilities.Json.getJsonString; |
18 | 16 | import static utils.reflection.ReflectionUtilities.getPreviousMethodName; |
19 | 17 | import static utils.StringUtilities.Color.*; |
20 | 18 | import static utils.reflection.ReflectionUtilities.isOfType; |
|
29 | 27 | * @version 1.4.0 (Documented in 1.4.0, released in an earlier version) |
30 | 28 | */ |
31 | 29 | @SuppressWarnings("unused") |
| 30 | +@Deprecated(since = "1.7.4") |
32 | 31 | public abstract class Caller { |
33 | 32 |
|
34 | 33 | /** |
@@ -175,7 +174,7 @@ private static <T> Response<T> getResponse(Call<T> call, boolean printBody) thro |
175 | 174 | * @return A deserialized error object instance of type {@code Model}. |
176 | 175 | * @throws RuntimeException if there's an issue processing the error content or deserializing it. |
177 | 176 | * |
178 | | - * @see MappingUtilities.Json#fromJsonString(String, Class) |
| 177 | + * @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class) |
179 | 178 | */ |
180 | 179 | @SuppressWarnings("unchecked") |
181 | 180 | private static <ErrorModel> ErrorModel getErrorObject(Response<?> response, Class<ErrorModel> errorModel) throws JsonProcessingException { |
@@ -253,8 +252,8 @@ private static <ResponseModel> Response<ResponseModel> call( |
253 | 252 | * @return A deserialized error model instance of type {@code ErrorModel} if a match is found. |
254 | 253 | * @throws RuntimeException if none of the provided error models match the error content of the response. |
255 | 254 | * |
256 | | - * @see MappingUtilities.Json#fromJsonString(String, Class) |
257 | | - * @see MappingUtilities.Json#getJsonStringFor(Object) |
| 255 | + * @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class) |
| 256 | + * @see utils.mapping.MappingUtilities.Json#getJsonStringFor(Object) |
258 | 257 | * @see #getErrorObject(Response, Class) |
259 | 258 | */ |
260 | 259 | @SuppressWarnings("unchecked") |
|
0 commit comments