【fix sonar】 CASServiceUtil.java文件
This commit is contained in:
+3
-3
@@ -55,12 +55,12 @@ public class CASServiceUtil {
|
|||||||
*/
|
*/
|
||||||
private static String readResponse(HttpResponse response) throws IOException {
|
private static String readResponse(HttpResponse response) throws IOException {
|
||||||
BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
||||||
String result = new String();
|
StringBuilder result = new StringBuilder();
|
||||||
String line;
|
String line;
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
result += line;
|
result.append(line);
|
||||||
}
|
}
|
||||||
return result;
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user