Skip to content

Commit

Permalink
fix(findbugs): suppress minor findbug issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shaobin0604 committed May 13, 2019
1 parent 1ec44c7 commit 07b4ebd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import com.wlqq.phantom.library.proxy.PluginClassLoader;
import com.wlqq.phantom.library.proxy.ResourcesProxy;
import com.wlqq.phantom.library.utils.FileUtils;
import com.wlqq.phantom.library.utils.SuppressFBWarnings;
import com.wlqq.phantom.library.utils.TimingUtils;
import com.wlqq.phantom.library.utils.VLog;

Expand Down Expand Up @@ -345,6 +346,7 @@ public File getExtraOdexesDir() {
return getDexDir(PluginManager.EXTRA_ODEX_DIR);
}

@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE")
private File getDexDir(String dir) {
File extraDexDir = new File(installDir, dir);
if (!extraDexDir.exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.wlqq.phantom.library.utils.FileUtils;
import com.wlqq.phantom.library.utils.IoUtils;
import com.wlqq.phantom.library.utils.ReflectUtils;
import com.wlqq.phantom.library.utils.SuppressFBWarnings;
import com.wlqq.phantom.library.utils.VLog;

import java.io.File;
Expand Down Expand Up @@ -279,6 +280,7 @@ private static int getSecondaryDexesCount(PluginInfo pi) throws IOException {
return FileUtils.readFileToInt(getDexesCountFile(pi));
}

@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE")
private static void putSecondaryDexesCount(PluginInfo pi, List<File> extractedDexes) {
final File dexesCountFile = getDexesCountFile(pi);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ public View onCreateView(View parent, String name, Context context, AttributeSet
*
* @return true使用appcompat-v7主题,false其他主题
*/
@SuppressFBWarnings("REC_CATCH_EXCEPTION")
private boolean useAppCompatTheme() {
try {
Class styleCls = mContentProxy.getClassLoader().findClassFast("android.support.v7.appcompat.R$styleable");
Expand Down

0 comments on commit 07b4ebd

Please sign in to comment.