mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
codacy: utils classes are to be final with private constructor
This commit is contained in:
parent
ce4ce8db41
commit
65df2e82b3
4 changed files with 16 additions and 4 deletions
|
@ -28,9 +28,12 @@ import com.owncloud.android.db.PreferenceManager;
|
|||
|
||||
import java.security.Key;
|
||||
|
||||
public class PushUtils {
|
||||
public final class PushUtils {
|
||||
public static final String KEY_PUSH = "push";
|
||||
|
||||
private PushUtils() {
|
||||
}
|
||||
|
||||
public static void pushRegistrationToServer() {
|
||||
// do nothing
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ import java.security.spec.PKCS8EncodedKeySpec;
|
|||
import java.security.spec.X509EncodedKeySpec;
|
||||
import java.util.Locale;
|
||||
|
||||
public class PushUtils {
|
||||
public final class PushUtils {
|
||||
|
||||
public static final String KEY_PUSH = "push";
|
||||
private static final String TAG = "PushUtils";
|
||||
|
@ -81,6 +81,9 @@ public class PushUtils {
|
|||
private static final String KEYPAIR_PUB_EXTENSION = ".pub";
|
||||
private static ArbitraryDataProvider arbitraryDataProvider;
|
||||
|
||||
private PushUtils() {
|
||||
}
|
||||
|
||||
public static String generateSHA512Hash(String pushToken) {
|
||||
MessageDigest messageDigest = null;
|
||||
try {
|
||||
|
|
|
@ -78,7 +78,7 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
|||
/**
|
||||
* Manager for concurrent access to thumbnails cache.
|
||||
*/
|
||||
public class ThumbnailsCacheManager {
|
||||
public final class ThumbnailsCacheManager {
|
||||
|
||||
public static final String PREFIX_RESIZED_IMAGE = "r";
|
||||
public static final String PREFIX_THUMBNAIL = "t";
|
||||
|
@ -103,6 +103,9 @@ public class ThumbnailsCacheManager {
|
|||
|
||||
public static final Bitmap mDefaultVideo = BitmapFactory.decodeResource(MainApp.getAppContext().getResources(),
|
||||
R.drawable.file_movie);
|
||||
|
||||
private ThumbnailsCacheManager() {
|
||||
}
|
||||
|
||||
public static class InitDiskCacheTask extends AsyncTask<File, Void, Void> {
|
||||
@Override
|
||||
|
|
|
@ -28,9 +28,12 @@ import com.owncloud.android.db.PreferenceManager;
|
|||
|
||||
import java.security.Key;
|
||||
|
||||
public class PushUtils {
|
||||
public final class PushUtils {
|
||||
public static final String KEY_PUSH = "push";
|
||||
|
||||
private PushUtils() {
|
||||
}
|
||||
|
||||
public static void pushRegistrationToServer() {
|
||||
// do nothing
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue