【fix sonar】 CASServiceUtil.java文件

This commit is contained in:
tianwenbo
2023-03-07 15:51:22 +08:00
parent 0b46a93d68
commit 4d6e083dff
@@ -55,12 +55,12 @@ public class CASServiceUtil {
*/
private static String readResponse(HttpResponse response) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
String result = new String();
StringBuilder result = new StringBuilder();
String line;
while ((line = in.readLine()) != null) {
result += line;
result.append(line);
}
return result;
return result.toString();
}