Skip to content

Commit 6e8c858

Browse files
committed
Reduce nullity test complexity by returning empty array instead of null
1 parent 5b80d66 commit 6e8c858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void checkServerTrusted(X509Certificate[] chain, String authType) throws
9191

9292
@Override
9393
public X509Certificate[] getAcceptedIssuers() {
94-
return null;
94+
return new X509Certificate[0];
9595
}
9696

9797
};

0 commit comments

Comments
 (0)