1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-27 18:21:14 +03:00

Run IntelliJ inspections on the codebase

Some nullability warnings, some diamond operators, adopting Objects.equals(),
and some dead code elimination.
This commit is contained in:
Jesse Wilson
2019-01-01 10:58:45 -05:00
parent ded5e1fd26
commit 0dc50f1112
67 changed files with 218 additions and 237 deletions

View File

@@ -41,8 +41,7 @@ import org.jsoup.nodes.Element;
*/
public final class Crawler {
private final OkHttpClient client;
private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(
new LinkedHashSet<HttpUrl>());
private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>());
private final LinkedBlockingQueue<HttpUrl> queue = new LinkedBlockingQueue<>();
private final ConcurrentHashMap<String, AtomicInteger> hostnames = new ConcurrentHashMap<>();