mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
Eliminated all warnings.
This commit is contained in:
@ -1212,7 +1212,7 @@ public class BaseAPIActionUtil
|
||||
{
|
||||
try
|
||||
{
|
||||
requestBody = StringUtils.join("\n", IOUtils.readLines(entityRequest.getEntity().getContent()));
|
||||
requestBody = StringUtils.join("\n", IOUtils.readLines(entityRequest.getEntity().getContent(), StandardCharsets.UTF_8));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.module.api.mocks;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Deque;
|
||||
import com.kingsrook.qqq.backend.core.exceptions.QException;
|
||||
@ -221,6 +222,6 @@ public class MockApiUtilsHelper
|
||||
@SuppressWarnings("unchecked")
|
||||
public static String readRequestBody(HttpRequestBase request) throws IOException
|
||||
{
|
||||
return (StringUtils.join("\n", IOUtils.readLines(((HttpEntityEnclosingRequestBase) request).getEntity().getContent())));
|
||||
return (StringUtils.join("\n", IOUtils.readLines(((HttpEntityEnclosingRequestBase) request).getEntity().getContent(), StandardCharsets.UTF_8)));
|
||||
}
|
||||
}
|
||||
|
@ -287,6 +287,7 @@ public class MockHttpResponse implements CloseableHttpResponse
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public HttpParams getParams()
|
||||
{
|
||||
return null;
|
||||
@ -295,6 +296,7 @@ public class MockHttpResponse implements CloseableHttpResponse
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void setParams(HttpParams httpParams)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user