Skip to content

Commit 3b75063

Browse files
committed
format code
1 parent a21cbb9 commit 3b75063

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

core/src/main/java/info/xiaomo/core/untils/HtmlUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static String htmlEncode(String strSrc, int quotes) {
9090
}
9191

9292
char[] arr_cSrc = strSrc.toCharArray();
93-
StringBuffer buf = new StringBuffer(arr_cSrc.length);
93+
StringBuilder buf = new StringBuilder(arr_cSrc.length);
9494
char ch;
9595

9696
for (int i = 0; i < arr_cSrc.length; i++) {

core/src/main/java/info/xiaomo/core/untils/HttpUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ private static HttpURLConnection initHttp(String url, String method, Map<String,
6868
* @throws KeyManagementException
6969
*/
7070
private static HttpsURLConnection initHttps(String url, String method, Map<String, String> headers) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, KeyManagementException {
71-
TrustManager[] tm = { new MyX509TrustManager()};SSLContext sslContext = SSLContext.getInstance("SSL", "SunJSSE");
71+
TrustManager[] tm = {new MyX509TrustManager()};
72+
SSLContext sslContext = SSLContext.getInstance("SSL", "SunJSSE");
7273
sslContext.init(null, tm, new java.security.SecureRandom());
7374
// 从上述SSLContext对象中得到SSLSocketFactory对象
7475
SSLSocketFactory ssf = sslContext.getSocketFactory();
@@ -296,8 +297,6 @@ public boolean verify(String hostname, SSLSession session) {
296297
}
297298

298299

299-
300-
301300
}
302301

303302
// 证书管理

0 commit comments

Comments
 (0)