| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ public static String htmlEncode(String strSrc, int quotes) { | |||
| 90 | 90 | } | |
| 91 | 91 | ||
| 92 | 92 | char[] arr_cSrc = strSrc.toCharArray(); | |
| 93 | - StringBuffer buf = new StringBuffer(arr_cSrc.length); | ||
| 93 | + StringBuilder buf = new StringBuilder(arr_cSrc.length); | ||
| 94 | 94 | char ch; | |
| 95 | 95 | ||
| 96 | 96 | for (int i = 0; i < arr_cSrc.length; i++) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,8 @@ private static HttpURLConnection initHttp(String url, String method, Map<String, | |||
| 68 | 68 | * @throws KeyManagementException | |
| 69 | 69 | */ | |
| 70 | 70 | 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"); | ||
| 72 | 73 | sslContext.init(null, tm, new java.security.SecureRandom()); | |
| 73 | 74 | // 从上述SSLContext对象中得到SSLSocketFactory对象 | |
| 74 | 75 | SSLSocketFactory ssf = sslContext.getSocketFactory(); | |
@@ -296,8 +297,6 @@ public boolean verify(String hostname, SSLSession session) { | |||
| 296 | 297 | } | |
| 297 | 298 | ||
| 298 | 299 | ||
| 299 | - | ||
| 300 | - | ||
| 301 | 300 | } | |
| 302 | 301 | ||
| 303 | 302 | // 证书管理 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments