INNER CODE UNIT · Java
getCodeCacheDir
tiann/FreeReflection · library/src/main/java/me/weishu/reflection/Reflection.java:84
private static File getCodeCacheDir(Context context) {
if (context != null) {
return context.getCodeCacheDir();
}
String tmpDir = System.getProperty("java.io.tmpdir");
if (TextUtils.isEmpty(tmpDir)) {
return null;
}
File tmp = new File(tmpDir);
if (!tmp.exists()) {
return null;
}
return tmp;
}
}