Android Studio 2.2 jdk 1.8
I open in the editor for example a class java.net.Socket
the code is displayed with errors:
for example, in the import block, import libcore.io.IoBridge; which is not found.
Who knows why the source code opens with errors?
Second question:
I open the sun.net.www.protocol.http.HttpURLConnection class
The decompiled code opens without documentation and with obfuscated variable names:
private boolean isRestrictedHeader(String var1, String var2) { if(allowRestrictedHeaders) { return false; } else { var1 = var1.toLowerCase(); return restrictedHeaderSet.contains(var1)?!var1.equals("connection") || !var2.equalsIgnoreCase("close"):var1.startsWith("sec-"); } } Can anyone know how to download this class from javadoc and from sources in Android Studio?