Fast-Android-Networking icon indicating copy to clipboard operation
Fast-Android-Networking copied to clipboard

Unchecked Type Warning

Open ronykrell opened this issue 4 years ago • 0 comments

warning: [unchecked] unchecked call to addBodyParameter(Map<String,String>) as a member of the raw type PostRequestBuilder

AndroidNetworking.post(baseUrl +"/tokenValidate").addBodyParameter(params).build() where T is a type-variable: T extends PostRequestBuilder declared in class PostRequestBuilder

Code is:

AndroidNetworking.post(baseUrl + "/tokenValidate").addBodyParameter(params).build()
                                    .getAsObject(OperationResult.class, new ParsedRequestListener<OperationResult>() {
                                        @Override
                                        public void onResponse(OperationResult response) {
                                            Timber.v("token object sent, successfully received response %s. Issuccss: %s",
                                                    response.getMessage(), response.isSuccess());
                                        }

                                        @Override
                                        public void onError(ANError anError) {
                                            Timber.w(anError.getErrorDetail());
                                        }
                                    });

ronykrell avatar May 23 '20 09:05 ronykrell