在阅读源码的过程中,发现有些类只定义了方法名和参数列表,里面具体的实现就一句话:throw new RuntimeException("Stub!");
比如BaseDexClassLoader这个类:
[java]
view plain
copy
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by Fernflower decompiler)
- //
- package dalvik.system;
- import java.io.File;
- import java.net.URL;
- import java.util.Enumeration;
- public class BaseDexClassLoader extends ClassLoader {
- public BaseDexClassLoader(String dexPath, File optimizedDirectory, String librarySearchPath, ClassLoader parent) {
- throw new RuntimeException("Stub!");
- }
- protected Class<?> findClass(String name) throws ClassNotFoundException {
- throw new RuntimeException("Stub!");
- }
- protected URL findResource(String name) {
- throw new Run