1010import com .mindee .v2 .parsing .JobResponse ;
1111import com .mindee .v2 .parsing .error .ErrorResponse ;
1212import com .mindee .v2 .parsing .search .BaseSearchResponse ;
13- import com .mindee .v2 .parsing .search .SearchResponse ;
1413import com .mindee .v2 .product .ProductAttributes ;
1514import java .io .IOException ;
1615
@@ -74,15 +73,6 @@ public abstract <TSearchResponse extends BaseSearchResponse> TSearchResponse req
7473 BaseSearchParameters parameters
7574 );
7675
77- /**
78- * Retrieves a list of models.
79- *
80- * @param modelName search term for model name
81- * @param modelType search term for model type
82- */
83- @ Deprecated
84- public abstract SearchResponse reqGetSearchModels (String modelName , String modelType );
85-
8676 /**
8777 * Creates an "unknown error" response from an HTTP status code.
8878 */
@@ -102,7 +92,7 @@ protected ProductAttributes getResponseProductInfo(
10292 var productInfo = responseClass .getAnnotation (ProductAttributes .class );
10393 if (productInfo == null ) {
10494 throw new MindeeException (
105- "The class " + responseClass .getSimpleName () + " is not annotated with @ProductInfo "
95+ "The class " + responseClass .getSimpleName () + " is not annotated with @ProductAttributes "
10696 );
10797 }
10898 return productInfo ;
@@ -114,7 +104,7 @@ protected ProductAttributes getParamsProductAttributes(
114104 var productInfo = responseClass .getAnnotation (ProductAttributes .class );
115105 if (productInfo == null ) {
116106 throw new MindeeException (
117- "The class " + responseClass .getSimpleName () + " is not annotated with @ProductInfo "
107+ "The class " + responseClass .getSimpleName () + " is not annotated with @ProductAttributes "
118108 );
119109 }
120110 return productInfo ;
0 commit comments