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:
@@ -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<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user