Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复一些规范上的错误 #131

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix:版本依赖
  • Loading branch information
chenhaipeng committed Oct 5, 2018
commit 6272234fc0a69effecdf302ab92d1a29cabd5fde
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.TimeUnit;

/**
Expand Down Expand Up @@ -79,7 +78,7 @@ public static HttpResult doGet(String url, int readTimeoutInMillis) throws IOExc
* @throws IOException io异常
*/
public static HttpResult doPost(String url, Map<String, String> params) throws IOException {
if (Objects.isNull(params)){
if (params == null){
params = new HashMap<>();
}
return doPost(client, url, params);
Expand Down