IDEA查看JDK源码
2022-09-22 22:43:34
查看源码时,IDEA默认是反编译的文件。并没有源码的注释,和参数变量名。
比如List:
1 | public interface List<E> extends Collection<E> { |
解决方法:
File -> Project Structure -> SDKs -> SourcePath -> 导入JDK中src.zip压缩包
再次查看源码,已经带有注释,方便我们理解代码
1 |
|