8265418: Clean-up redundant null-checks of Class.getPackageName()

Reviewed-by: redestad
This commit is contained in:
Сергей Цыпанов 2021-05-27 20:21:34 +00:00 committed by Claes Redestad
parent 41185d38f2
commit ae258f1e6a
8 changed files with 13 additions and 19 deletions

View file

@ -129,7 +129,7 @@ public final class ReflectUtil {
}
String pkg = clazz.getPackageName();
if (pkg != null && !pkg.isEmpty()) {
if (!pkg.isEmpty()) {
s.checkPackageAccess(pkg);
}