squid:S1118 - Utility classes should not have public constructors (#281)
This commit is contained in:
@@ -8,7 +8,11 @@ import android.content.pm.PackageManager;
|
||||
|
||||
import timber.log.Timber;
|
||||
|
||||
public class AndroidComponentUtil {
|
||||
public final class AndroidComponentUtil {
|
||||
|
||||
private AndroidComponentUtil() throws InstantiationException {
|
||||
throw new InstantiationException("This class is not for instantiation");
|
||||
}
|
||||
|
||||
public static void toggleComponent(Context context, Class componentClass, boolean enable) {
|
||||
Timber.i((enable ? "Enabling " : "Disabling ") + componentClass.getSimpleName());
|
||||
|
||||
Reference in New Issue
Block a user