Pre Merge pull request !152 from Jason_liu/master
This commit is contained in:
commit
e2d2f5cb94
|
|
@ -6,6 +6,8 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.yaml.snakeyaml.DumperOptions;
|
import org.yaml.snakeyaml.DumperOptions;
|
||||||
import org.yaml.snakeyaml.Yaml;
|
import org.yaml.snakeyaml.Yaml;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
|
@ -68,7 +70,7 @@ public class YamlUtil
|
||||||
if (map != null && !map.isEmpty() && qualifiedKey != null)
|
if (map != null && !map.isEmpty() && qualifiedKey != null)
|
||||||
{
|
{
|
||||||
String input = String.valueOf(qualifiedKey);
|
String input = String.valueOf(qualifiedKey);
|
||||||
if (!input.equals(""))
|
if (!Objects.equals(input, ""))
|
||||||
{
|
{
|
||||||
if (input.contains("."))
|
if (input.contains("."))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import java.net.SocketTimeoutException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLConnection;
|
import java.net.URLConnection;
|
||||||
import java.security.cert.X509Certificate;
|
import java.security.cert.X509Certificate;
|
||||||
|
import java.util.Objects;
|
||||||
import javax.net.ssl.HostnameVerifier;
|
import javax.net.ssl.HostnameVerifier;
|
||||||
import javax.net.ssl.HttpsURLConnection;
|
import javax.net.ssl.HttpsURLConnection;
|
||||||
import javax.net.ssl.SSLContext;
|
import javax.net.ssl.SSLContext;
|
||||||
|
|
@ -204,7 +205,7 @@ public class HttpUtils
|
||||||
String ret = "";
|
String ret = "";
|
||||||
while ((ret = br.readLine()) != null)
|
while ((ret = br.readLine()) != null)
|
||||||
{
|
{
|
||||||
if (ret != null && !ret.trim().equals(""))
|
if (!Objects.equals(ret.trim(), ""))
|
||||||
{
|
{
|
||||||
result.append(new String(ret.getBytes("ISO-8859-1"), "utf-8"));
|
result.append(new String(ret.getBytes("ISO-8859-1"), "utf-8"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue