diff --git a/.editorconfig b/.editorconfig index 12b24cf276..75daf9c59e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,6 @@ root = true [*.{kt,kts}] -ktlint_standard_no-wildcard-imports = disabled ktlint_standard_property-naming = disabled ktlint_standard_value-argument-comment = disabled ktlint_standard_kdoc-wrapping = disabled diff --git a/app/src/androidTest/java/com/amaze/filemanager/ui/fragments/BackupPrefsFragmentTest.kt b/app/src/androidTest/java/com/amaze/filemanager/ui/fragments/BackupPrefsFragmentTest.kt index 533bbb97d9..027f5c5128 100644 --- a/app/src/androidTest/java/com/amaze/filemanager/ui/fragments/BackupPrefsFragmentTest.kt +++ b/app/src/androidTest/java/com/amaze/filemanager/ui/fragments/BackupPrefsFragmentTest.kt @@ -37,7 +37,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4 import com.amaze.filemanager.R import com.amaze.filemanager.ui.activities.PreferencesActivity import com.amaze.filemanager.ui.fragments.preferencefragments.BackupPrefsFragment -import com.google.gson.* +import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken import org.junit.Assert import org.junit.Test diff --git a/app/src/main/java/com/amaze/filemanager/adapters/HiddenAdapter.kt b/app/src/main/java/com/amaze/filemanager/adapters/HiddenAdapter.kt index e718b6f186..dd37c47e27 100644 --- a/app/src/main/java/com/amaze/filemanager/adapters/HiddenAdapter.kt +++ b/app/src/main/java/com/amaze/filemanager/adapters/HiddenAdapter.kt @@ -39,7 +39,6 @@ import com.amaze.filemanager.ui.activities.MainActivity import com.amaze.filemanager.ui.fragments.MainFragment import com.amaze.filemanager.utils.DataUtils import java.io.File -import java.util.ArrayList import kotlin.concurrent.thread /** diff --git a/app/src/main/java/com/amaze/filemanager/adapters/RecyclerAdapter.java b/app/src/main/java/com/amaze/filemanager/adapters/RecyclerAdapter.java index 31755024b9..ace6284542 100644 --- a/app/src/main/java/com/amaze/filemanager/adapters/RecyclerAdapter.java +++ b/app/src/main/java/com/amaze/filemanager/adapters/RecyclerAdapter.java @@ -20,7 +20,23 @@ package com.amaze.filemanager.adapters; -import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.*; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtension7zip; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionApk; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionApks; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionBzip2; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionBzip2TarLong; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionBzip2TarShort; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionGz; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionGzipTarLong; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionGzipTarShort; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionJar; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionLzma; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionRar; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionTar; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionTarLzma; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionTarXz; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionXz; +import static com.amaze.filemanager.filesystem.compressed.CompressedHelper.fileExtensionZip; import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_COLORIZE_ICONS; import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_SHOW_FILE_SIZE; import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_SHOW_GOBACK_BUTTON; diff --git a/app/src/main/java/com/amaze/filemanager/adapters/data/AppDataSorter.kt b/app/src/main/java/com/amaze/filemanager/adapters/data/AppDataSorter.kt index 2b8ea318aa..93a8219cda 100644 --- a/app/src/main/java/com/amaze/filemanager/adapters/data/AppDataSorter.kt +++ b/app/src/main/java/com/amaze/filemanager/adapters/data/AppDataSorter.kt @@ -21,7 +21,6 @@ package com.amaze.filemanager.adapters.data import com.amaze.filemanager.utils.safeLet -import java.util.Comparator class AppDataSorter(var sort: Int, isAscending: Boolean) : Comparator { diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/SearchTextTask.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/SearchTextTask.kt index 7739be49e8..98ab446fb7 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/SearchTextTask.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/SearchTextTask.kt @@ -30,7 +30,6 @@ import org.slf4j.LoggerFactory import java.io.IOException import java.io.LineNumberReader import java.io.StringReader -import java.util.ArrayList class SearchTextTask( private val textToSearch: String, diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCommonsArchiveHelperCallable.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCommonsArchiveHelperCallable.kt index a10d930fcc..2aee2624aa 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCommonsArchiveHelperCallable.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCommonsArchiveHelperCallable.kt @@ -32,7 +32,6 @@ import java.io.FileInputStream import java.io.IOException import java.io.InputStream import java.lang.ref.WeakReference -import java.util.* abstract class AbstractCommonsArchiveHelperCallable( context: Context, diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperCallable.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperCallable.kt index fa25fe2422..5e0188353f 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperCallable.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperCallable.kt @@ -25,7 +25,7 @@ import com.amaze.filemanager.adapters.data.CompressedObjectParcelable import org.apache.commons.compress.archivers.ArchiveException import org.slf4j.Logger import org.slf4j.LoggerFactory -import java.util.* +import java.util.Collections import java.util.concurrent.Callable abstract class CompressedHelperCallable internal constructor( diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/UnknownCompressedFileHelperCallable.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/UnknownCompressedFileHelperCallable.kt index cf14ef7d28..56c49e0859 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/UnknownCompressedFileHelperCallable.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/UnknownCompressedFileHelperCallable.kt @@ -21,7 +21,6 @@ package com.amaze.filemanager.asynchronous.asynctasks.compress import com.amaze.filemanager.adapters.data.CompressedObjectParcelable -import java.util.ArrayList /** * For gzip, bz2, lzma and xz compressed files. diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/ZipHelperCallable.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/ZipHelperCallable.kt index 9ad0e63868..e8387d80b2 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/ZipHelperCallable.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/compress/ZipHelperCallable.kt @@ -32,7 +32,6 @@ import net.lingala.zip4j.model.FileHeader import org.apache.commons.compress.archivers.ArchiveException import java.io.File import java.lang.ref.WeakReference -import kotlin.collections.ArrayList class ZipHelperCallable( c: Context, diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/movecopy/PreparePasteTask.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/movecopy/PreparePasteTask.kt index 178e36ebcc..e8e353194f 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/movecopy/PreparePasteTask.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/movecopy/PreparePasteTask.kt @@ -29,6 +29,7 @@ import com.afollestad.materialdialogs.DialogAction import com.afollestad.materialdialogs.MaterialDialog import com.amaze.filemanager.R import com.amaze.filemanager.asynchronous.asynctasks.fromTask +import com.amaze.filemanager.asynchronous.asynctasks.movecopy.PreparePasteTask.CopyNode import com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil import com.amaze.filemanager.asynchronous.services.CopyService import com.amaze.filemanager.databinding.CopyDialogBinding diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/FileSearch.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/FileSearch.kt index 31a85e7bbc..a920e70538 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/FileSearch.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/FileSearch.kt @@ -22,6 +22,7 @@ package com.amaze.filemanager.asynchronous.asynctasks.searchfilesystem import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData +import com.amaze.filemanager.asynchronous.asynctasks.searchfilesystem.FileSearch.SearchFilter import com.amaze.filemanager.filesystem.HybridFileParcelable import java.util.Locale import java.util.regex.Pattern diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/ssh/GetSshHostFingerprintTaskCallable.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/ssh/GetSshHostFingerprintTaskCallable.kt index 4bcb09fdbc..fe3567def8 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/ssh/GetSshHostFingerprintTaskCallable.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/ssh/GetSshHostFingerprintTaskCallable.kt @@ -27,7 +27,7 @@ import net.schmizz.sshj.transport.verification.HostKeyVerifier import org.slf4j.Logger import org.slf4j.LoggerFactory import java.security.PublicKey -import java.util.* +import java.util.Collections import java.util.concurrent.Callable import java.util.concurrent.CountDownLatch diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/texteditor/read/ReadTextFileTask.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/texteditor/read/ReadTextFileTask.kt index d6908f036f..361e541493 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/texteditor/read/ReadTextFileTask.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/texteditor/read/ReadTextFileTask.kt @@ -37,7 +37,7 @@ import org.slf4j.Logger import org.slf4j.LoggerFactory import java.io.IOException import java.lang.ref.WeakReference -import java.util.* +import java.util.Locale class ReadTextFileTask( activity: TextEditorActivity, diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/management/ServiceWatcherUtil.java b/app/src/main/java/com/amaze/filemanager/asynchronous/management/ServiceWatcherUtil.java index 165a050710..38030c793a 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/management/ServiceWatcherUtil.java +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/management/ServiceWatcherUtil.java @@ -27,10 +27,13 @@ * this class can only handle progress with one object at a time. Hence, class also provides * convenience methods to serialize the service startup. */ -import static com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil.ServiceStatusCallbacks.*; +import static com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil.ServiceStatusCallbacks.STATE_HALTED; +import static com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil.ServiceStatusCallbacks.STATE_RESUMED; +import static com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil.ServiceStatusCallbacks.STATE_UNSET; import java.lang.ref.WeakReference; -import java.util.concurrent.*; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.TimeUnit; import com.amaze.filemanager.R; import com.amaze.filemanager.asynchronous.AbstractRepeatingRunnable; diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt index f5b81d95e8..d08164320d 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt @@ -22,7 +22,11 @@ package com.amaze.filemanager.asynchronous.services import android.app.PendingIntent import android.app.PendingIntent.FLAG_UPDATE_CURRENT -import android.content.* +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent +import android.content.IntentFilter +import android.content.SharedPreferences import android.net.Uri import android.os.Build.VERSION.SDK_INT import android.os.Build.VERSION_CODES.O @@ -52,11 +56,15 @@ import io.reactivex.disposables.Disposable import io.reactivex.schedulers.Schedulers import org.slf4j.Logger import org.slf4j.LoggerFactory -import java.io.* +import java.io.BufferedInputStream +import java.io.BufferedOutputStream +import java.io.File +import java.io.FileInputStream +import java.io.IOException +import java.io.OutputStream import java.nio.file.Files import java.nio.file.Paths import java.nio.file.attribute.BasicFileAttributes -import java.util.* import java.util.zip.ZipEntry import java.util.zip.ZipException import java.util.zip.ZipOutputStream diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ftp/FtpService.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ftp/FtpService.kt index 893dedbaa4..d8003ce9e3 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ftp/FtpService.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ftp/FtpService.kt @@ -65,7 +65,7 @@ import org.slf4j.LoggerFactory import java.io.IOException import java.security.GeneralSecurityException import java.security.KeyStore -import java.util.* +import java.util.LinkedList import javax.net.ssl.KeyManagerFactory import javax.net.ssl.TrustManagerFactory import kotlin.concurrent.thread diff --git a/app/src/main/java/com/amaze/filemanager/database/UtilsHandler.kt b/app/src/main/java/com/amaze/filemanager/database/UtilsHandler.kt index 85642e4e38..ecb870645f 100644 --- a/app/src/main/java/com/amaze/filemanager/database/UtilsHandler.kt +++ b/app/src/main/java/com/amaze/filemanager/database/UtilsHandler.kt @@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory import java.io.File import java.io.IOException import java.security.GeneralSecurityException -import java.util.* +import java.util.LinkedList /** * Created by Vishal on 29-05-2017. Class handles database with tables having list of various diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/ExternalSdCardOperation.kt b/app/src/main/java/com/amaze/filemanager/filesystem/ExternalSdCardOperation.kt index 84249465c2..4872dfca54 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/ExternalSdCardOperation.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/ExternalSdCardOperation.kt @@ -32,7 +32,6 @@ import org.slf4j.Logger import org.slf4j.LoggerFactory import java.io.File import java.io.IOException -import java.util.* object ExternalSdCardOperation { private val log: Logger = LoggerFactory.getLogger(UtilsHandler::class.java) diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt b/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt index 7fed73b3ae..27a4e2bf7d 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt @@ -26,7 +26,11 @@ import android.util.Log import com.amaze.filemanager.fileoperations.exceptions.ShellNotRunningException import com.amaze.filemanager.filesystem.MakeDirectoryOperation.mkdir import com.amaze.filemanager.filesystem.root.RenameFileCommand.renameFile -import java.io.* +import java.io.File +import java.io.FileInputStream +import java.io.FileOutputStream +import java.io.IOException +import java.io.OutputStream import java.nio.channels.FileChannel object RenameOperation { diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/AbstractCommonsArchiveExtractor.kt b/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/AbstractCommonsArchiveExtractor.kt index 38d2338730..d9e8e63899 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/AbstractCommonsArchiveExtractor.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/AbstractCommonsArchiveExtractor.kt @@ -30,8 +30,11 @@ import com.amaze.filemanager.filesystem.compressed.extractcontents.Extractor import com.amaze.filemanager.filesystem.files.GenericCopyUtil import org.apache.commons.compress.archivers.ArchiveEntry import org.apache.commons.compress.archivers.ArchiveInputStream -import java.io.* -import java.util.* +import java.io.BufferedOutputStream +import java.io.File +import java.io.FileInputStream +import java.io.IOException +import java.io.InputStream abstract class AbstractCommonsArchiveExtractor( context: Context, diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/ZipExtractor.kt b/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/ZipExtractor.kt index 214aaefa3e..368bbbf2b3 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/ZipExtractor.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/compressed/extractcontents/helpers/ZipExtractor.kt @@ -39,7 +39,6 @@ import java.io.BufferedInputStream import java.io.BufferedOutputStream import java.io.File import java.io.IOException -import java.util.* class ZipExtractor( context: Context, diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/files/FileListSorter.kt b/app/src/main/java/com/amaze/filemanager/filesystem/files/FileListSorter.kt index d789c38654..0398be0ca8 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/files/FileListSorter.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/files/FileListSorter.kt @@ -27,6 +27,10 @@ import com.amaze.filemanager.filesystem.files.sort.SortBy import com.amaze.filemanager.filesystem.files.sort.SortType import java.lang.Long import java.util.Locale +import kotlin.Boolean +import kotlin.Comparator +import kotlin.Int +import kotlin.String /** * [Comparator] implementation to sort [LayoutElementParcelable]s. diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/ftp/Extensions.kt b/app/src/main/java/com/amaze/filemanager/filesystem/ftp/Extensions.kt index 4d5ef0f108..f2752db8f5 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/ftp/Extensions.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/ftp/Extensions.kt @@ -23,7 +23,12 @@ package com.amaze.filemanager.filesystem.ftp import net.schmizz.sshj.xfer.FilePermission import org.apache.commons.net.ftp.FTPClient import org.apache.commons.net.ftp.FTPFile -import org.apache.commons.net.ftp.FTPFile.* +import org.apache.commons.net.ftp.FTPFile.EXECUTE_PERMISSION +import org.apache.commons.net.ftp.FTPFile.GROUP_ACCESS +import org.apache.commons.net.ftp.FTPFile.READ_PERMISSION +import org.apache.commons.net.ftp.FTPFile.USER_ACCESS +import org.apache.commons.net.ftp.FTPFile.WORLD_ACCESS +import org.apache.commons.net.ftp.FTPFile.WRITE_PERMISSION import org.apache.commons.net.ftp.FTPReply import java.io.IOException diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/ftp/NetCopyClientConnectionPool.kt b/app/src/main/java/com/amaze/filemanager/filesystem/ftp/NetCopyClientConnectionPool.kt index 601a768229..e4eecfdf30 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/ftp/NetCopyClientConnectionPool.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/ftp/NetCopyClientConnectionPool.kt @@ -40,7 +40,6 @@ import org.json.JSONObject import org.slf4j.Logger import org.slf4j.LoggerFactory import java.security.KeyPair -import java.util.* import java.util.concurrent.Callable import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.CountDownLatch diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/ftpserver/RootFileSystemView.kt b/app/src/main/java/com/amaze/filemanager/filesystem/ftpserver/RootFileSystemView.kt index 2e93263b4c..90f4eaaf68 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/ftpserver/RootFileSystemView.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/ftpserver/RootFileSystemView.kt @@ -27,7 +27,7 @@ import org.apache.ftpserver.ftplet.FtpFile import org.apache.ftpserver.ftplet.User import java.io.File import java.net.URI -import java.util.* +import java.util.StringTokenizer class RootFileSystemView( private val user: User, diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/smb/CifsContexts.kt b/app/src/main/java/com/amaze/filemanager/filesystem/smb/CifsContexts.kt index 08246ff1d8..286beb42fb 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/smb/CifsContexts.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/smb/CifsContexts.kt @@ -29,7 +29,7 @@ import jcifs.CIFSException import jcifs.config.PropertyConfiguration import jcifs.context.BaseContext import jcifs.context.SingletonContext -import java.util.* +import java.util.Properties import java.util.concurrent.ConcurrentHashMap object CifsContexts { diff --git a/app/src/main/java/com/amaze/filemanager/ui/activities/texteditor/TextEditorActivityViewModel.kt b/app/src/main/java/com/amaze/filemanager/ui/activities/texteditor/TextEditorActivityViewModel.kt index 7057adb8b0..83a57ef534 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/activities/texteditor/TextEditorActivityViewModel.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/activities/texteditor/TextEditorActivityViewModel.kt @@ -23,7 +23,7 @@ package com.amaze.filemanager.ui.activities.texteditor import androidx.lifecycle.ViewModel import com.amaze.filemanager.filesystem.EditableFileAbstraction import java.io.File -import java.util.* +import java.util.Timer class TextEditorActivityViewModel : ViewModel() { var original: String? = null diff --git a/app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt b/app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt index eda7e37e83..f2f509478d 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt @@ -34,7 +34,6 @@ import com.amaze.filemanager.ui.fragments.MainFragment import com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants import com.amaze.filemanager.utils.DataUtils import com.amaze.filemanager.utils.safeLet -import kotlin.collections.ArrayList class RecyclerAdapterDragListener( private val adapter: RecyclerAdapter, diff --git a/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/AppearancePrefsFragment.kt b/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/AppearancePrefsFragment.kt index cbde160735..6626ef853b 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/AppearancePrefsFragment.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/AppearancePrefsFragment.kt @@ -27,7 +27,7 @@ import com.amaze.filemanager.R import com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_GRID_COLUMNS import com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_GRID_COLUMNS_DEFAULT import com.amaze.filemanager.ui.theme.AppThemePreference -import java.util.* +import java.util.Objects class AppearancePrefsFragment : BasePrefsFragment() { override val title = R.string.appearance diff --git a/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/BackupPrefsFragment.kt b/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/BackupPrefsFragment.kt index dd13c279b1..10fedb4ff7 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/BackupPrefsFragment.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/fragments/preferencefragments/BackupPrefsFragment.kt @@ -38,7 +38,11 @@ import com.google.gson.Gson import com.google.gson.reflect.TypeToken import org.slf4j.Logger import org.slf4j.LoggerFactory -import java.io.* +import java.io.BufferedReader +import java.io.File +import java.io.FileWriter +import java.io.IOException +import java.io.InputStreamReader class BackupPrefsFragment : BasePrefsFragment() { private val TAG: String = TagsHelper.getTag(BasePrefsFragment::class.java) diff --git a/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt b/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt index 3742688814..6a00f76e03 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt @@ -22,7 +22,6 @@ package com.amaze.filemanager.ui.views.drawer import android.view.MenuItem import androidx.lifecycle.ViewModel -import java.util.* class DrawerViewModel : ViewModel() { private val menuMetadataMap = HashMap() diff --git a/app/src/main/java/com/amaze/filemanager/utils/AESCrypt.kt b/app/src/main/java/com/amaze/filemanager/utils/AESCrypt.kt index bba0806336..2731f213ed 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/AESCrypt.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/AESCrypt.kt @@ -22,6 +22,8 @@ package com.amaze.filemanager.utils import android.util.Log import com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil +import com.amaze.filemanager.utils.AESCrypt.DecryptFailureException +import com.amaze.filemanager.utils.AESCrypt.IncorrectEncryptedDataException import java.io.IOException import java.io.InputStream import java.io.OutputStream diff --git a/app/src/main/java/com/amaze/filemanager/utils/BookSorter.kt b/app/src/main/java/com/amaze/filemanager/utils/BookSorter.kt index ab5a638571..46a8b82d17 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/BookSorter.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/BookSorter.kt @@ -20,8 +20,6 @@ package com.amaze.filemanager.utils -import java.util.* - /** Created by Arpit on 20-11-2015. */ class BookSorter : Comparator> { override fun compare( diff --git a/app/src/main/java/com/amaze/filemanager/utils/OneCharacterCharSequence.kt b/app/src/main/java/com/amaze/filemanager/utils/OneCharacterCharSequence.kt index 9746c576f6..4059bc26dc 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/OneCharacterCharSequence.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/OneCharacterCharSequence.kt @@ -20,7 +20,7 @@ package com.amaze.filemanager.utils -import java.util.* +import java.util.Arrays class OneCharacterCharSequence(private val value: Char, override val length: Int) : CharSequence { override fun get(index: Int): Char = diff --git a/app/src/main/java/com/amaze/filemanager/utils/UUIDv5.kt b/app/src/main/java/com/amaze/filemanager/utils/UUIDv5.kt index 20882cb55e..6dad912b65 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/UUIDv5.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/UUIDv5.kt @@ -22,7 +22,7 @@ package com.amaze.filemanager.utils import java.security.MessageDigest import java.security.NoSuchAlgorithmException -import java.util.* +import java.util.UUID /** * UUIDv5 implementation, referenced from diff --git a/app/src/main/java/com/amaze/filemanager/utils/X509CertificateUtil.kt b/app/src/main/java/com/amaze/filemanager/utils/X509CertificateUtil.kt index e41d73459b..7e988ff5b4 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/X509CertificateUtil.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/X509CertificateUtil.kt @@ -23,7 +23,7 @@ package com.amaze.filemanager.utils import net.schmizz.sshj.common.ByteArrayUtils import org.json.JSONObject import java.security.MessageDigest -import java.util.* +import java.util.WeakHashMap object X509CertificateUtil { const val SUBJECT = "subject" diff --git a/app/src/main/java/com/amaze/filemanager/utils/security/SecretKeygen.kt b/app/src/main/java/com/amaze/filemanager/utils/security/SecretKeygen.kt index 7f363c3743..6e4123a140 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/security/SecretKeygen.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/security/SecretKeygen.kt @@ -41,7 +41,7 @@ import java.security.Key import java.security.KeyPairGenerator import java.security.KeyStore import java.security.SecureRandom -import java.util.* +import java.util.Calendar import javax.crypto.Cipher import javax.crypto.CipherInputStream import javax.crypto.CipherOutputStream diff --git a/app/src/main/java/com/amaze/filemanager/utils/smb/WsddDiscoverDeviceStrategy.kt b/app/src/main/java/com/amaze/filemanager/utils/smb/WsddDiscoverDeviceStrategy.kt index be788cf22c..3fe8e2f901 100644 --- a/app/src/main/java/com/amaze/filemanager/utils/smb/WsddDiscoverDeviceStrategy.kt +++ b/app/src/main/java/com/amaze/filemanager/utils/smb/WsddDiscoverDeviceStrategy.kt @@ -40,7 +40,8 @@ import java.io.StringReader import java.net.DatagramPacket import java.net.InetAddress import java.net.MulticastSocket -import java.util.* +import java.util.UUID +import java.util.WeakHashMap /** * [SmbDeviceScannerObservable.DiscoverDeviceStrategy] implementation to discover SMB devices using diff --git a/app/src/play/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallable.kt b/app/src/play/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallable.kt index 979bff7c7c..62b35e473a 100644 --- a/app/src/play/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallable.kt +++ b/app/src/play/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallable.kt @@ -30,7 +30,6 @@ import org.apache.commons.compress.archivers.ArchiveException import java.io.File import java.io.FileNotFoundException import java.io.IOException -import java.util.* /** * AsyncTask to load RAR file items. diff --git a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/AbstractDeleteTaskTestBase.kt b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/AbstractDeleteTaskTestBase.kt index c3e796df52..be9335ad21 100644 --- a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/AbstractDeleteTaskTestBase.kt +++ b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/AbstractDeleteTaskTestBase.kt @@ -45,7 +45,11 @@ import io.reactivex.android.plugins.RxAndroidPlugins import io.reactivex.plugins.RxJavaPlugins import io.reactivex.schedulers.Schedulers import org.junit.After -import org.junit.Assert.* +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertNull +import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Rule import org.junit.runner.RunWith diff --git a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCompressedHelperCallableTest.kt b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCompressedHelperCallableTest.kt index 91b74ae0bb..15d4575565 100644 --- a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCompressedHelperCallableTest.kt +++ b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/AbstractCompressedHelperCallableTest.kt @@ -34,7 +34,7 @@ import org.robolectric.shadows.ShadowEnvironment import java.io.File import java.io.FileInputStream import java.io.FileOutputStream -import java.util.* +import java.util.TimeZone @RunWith(AndroidJUnit4::class) @Config(shadows = [ShadowMultiDex::class], sdk = [KITKAT, P, Build.VERSION_CODES.R]) diff --git a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperForBadArchiveTest.kt b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperForBadArchiveTest.kt index 6b7c2cf2a4..3d69134c85 100644 --- a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperForBadArchiveTest.kt +++ b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/compress/CompressedHelperForBadArchiveTest.kt @@ -20,7 +20,8 @@ package com.amaze.filemanager.asynchronous.asynctasks.compress -import android.os.Build.VERSION_CODES.* +import android.os.Build.VERSION_CODES.KITKAT +import android.os.Build.VERSION_CODES.P import android.os.Environment import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 diff --git a/app/src/test/java/com/amaze/filemanager/asynchronous/services/ZipServiceTest.kt b/app/src/test/java/com/amaze/filemanager/asynchronous/services/ZipServiceTest.kt index a4bfd04153..8650664d2b 100644 --- a/app/src/test/java/com/amaze/filemanager/asynchronous/services/ZipServiceTest.kt +++ b/app/src/test/java/com/amaze/filemanager/asynchronous/services/ZipServiceTest.kt @@ -34,7 +34,9 @@ import com.amaze.filemanager.shadows.ShadowMultiDex import net.lingala.zip4j.ZipFile import net.lingala.zip4j.model.FileHeader import org.awaitility.Awaitility.await -import org.junit.Assert.* +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @@ -51,7 +53,7 @@ import java.nio.file.attribute.FileTime import java.time.LocalDateTime.parse import java.time.ZoneId.of import java.time.format.DateTimeFormatter -import java.util.* +import java.util.Date import java.util.concurrent.TimeUnit import kotlin.random.Random diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/AbstractOperationsTestBase.kt b/app/src/test/java/com/amaze/filemanager/filesystem/AbstractOperationsTestBase.kt index d910ae3917..26ac58851b 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/AbstractOperationsTestBase.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/AbstractOperationsTestBase.kt @@ -44,7 +44,9 @@ import io.reactivex.android.plugins.RxAndroidPlugins import io.reactivex.plugins.RxJavaPlugins import io.reactivex.schedulers.Schedulers import org.junit.After -import org.junit.Assert.* +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Rule import org.junit.runner.RunWith diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/cloud/CloudUtilTest.kt b/app/src/test/java/com/amaze/filemanager/filesystem/cloud/CloudUtilTest.kt index 7e5c4c6293..83078a553a 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/cloud/CloudUtilTest.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/cloud/CloudUtilTest.kt @@ -22,7 +22,10 @@ package com.amaze.filemanager.filesystem.cloud import com.amaze.filemanager.database.CloudHandler import com.amaze.filemanager.fileoperations.filesystem.OpenMode -import com.amaze.filemanager.fileoperations.filesystem.OpenMode.* +import com.amaze.filemanager.fileoperations.filesystem.OpenMode.BOX +import com.amaze.filemanager.fileoperations.filesystem.OpenMode.DROPBOX +import com.amaze.filemanager.fileoperations.filesystem.OpenMode.GDRIVE +import com.amaze.filemanager.fileoperations.filesystem.OpenMode.ONEDRIVE import com.amaze.filemanager.filesystem.RandomPathGenerator import org.junit.Assert import org.junit.Test diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/compressed/extractcontents/AbstractExtractorTest.kt b/app/src/test/java/com/amaze/filemanager/filesystem/compressed/extractcontents/AbstractExtractorTest.kt index 1d4a7612ef..59aa3bdd24 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/compressed/extractcontents/AbstractExtractorTest.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/compressed/extractcontents/AbstractExtractorTest.kt @@ -32,17 +32,22 @@ import com.amaze.filemanager.fileoperations.filesystem.compressed.ArchivePasswor import com.amaze.filemanager.fileoperations.utils.UpdatePosition import com.amaze.filemanager.shadows.ShadowMultiDex import com.amaze.filemanager.test.randomBytes -import org.junit.* +import org.junit.After import org.junit.Assert.assertTrue import org.junit.Assert.fail +import org.junit.Before +import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowEnvironment -import java.io.* +import java.io.ByteArrayInputStream +import java.io.File +import java.io.FileInputStream +import java.io.FileOutputStream import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths -import java.util.* +import java.util.TimeZone @RunWith(AndroidJUnit4::class) @Config(shadows = [ShadowMultiDex::class], sdk = [KITKAT, P, Build.VERSION_CODES.R]) diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/files/FileUtilsTest.kt b/app/src/test/java/com/amaze/filemanager/filesystem/files/FileUtilsTest.kt index 0133d70cba..cd8a1dde92 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/files/FileUtilsTest.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/files/FileUtilsTest.kt @@ -34,7 +34,7 @@ import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config import org.robolectric.annotation.LooperMode -import java.util.* +import java.util.TimeZone @RunWith(AndroidJUnit4::class) @LooperMode(LooperMode.Mode.PAUSED) diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/ftp/FtpHybridFileTest.kt b/app/src/test/java/com/amaze/filemanager/filesystem/ftp/FtpHybridFileTest.kt index 5b38f6efc3..c11239702e 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/ftp/FtpHybridFileTest.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/ftp/FtpHybridFileTest.kt @@ -46,8 +46,14 @@ import org.apache.ftpserver.listener.ListenerFactory import org.apache.ftpserver.usermanager.impl.BaseUser import org.apache.ftpserver.usermanager.impl.WritePermission import org.awaitility.Awaitility.await -import org.junit.* -import org.junit.Assert.* +import org.junit.After +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertTrue +import org.junit.Assert.fail +import org.junit.Before +import org.junit.Ignore +import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config import java.io.File diff --git a/app/src/test/java/com/amaze/filemanager/filesystem/ftp/NetCopyConnectionInfoTest.kt b/app/src/test/java/com/amaze/filemanager/filesystem/ftp/NetCopyConnectionInfoTest.kt index 0b291a43b4..55e49a56ff 100644 --- a/app/src/test/java/com/amaze/filemanager/filesystem/ftp/NetCopyConnectionInfoTest.kt +++ b/app/src/test/java/com/amaze/filemanager/filesystem/ftp/NetCopyConnectionInfoTest.kt @@ -26,7 +26,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4 import com.amaze.filemanager.shadows.ShadowMultiDex import com.amaze.filemanager.test.ShadowPasswordUtil import com.amaze.filemanager.utils.urlDecoded -import org.junit.Assert.* +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertNull import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config diff --git a/app/src/test/java/com/amaze/filemanager/ui/theme/AppThemeTest.kt b/app/src/test/java/com/amaze/filemanager/ui/theme/AppThemeTest.kt index fd5423f72f..16c8efa38a 100644 --- a/app/src/test/java/com/amaze/filemanager/ui/theme/AppThemeTest.kt +++ b/app/src/test/java/com/amaze/filemanager/ui/theme/AppThemeTest.kt @@ -37,7 +37,7 @@ import org.junit.runner.RunWith import org.robolectric.Shadows import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowPowerManager -import java.util.* +import java.util.Calendar @RunWith(AndroidJUnit4::class) @Config( diff --git a/app/src/test/java/com/amaze/filemanager/utils/smb/WsddSubnetDiscoverDevicesStrategyTest.kt b/app/src/test/java/com/amaze/filemanager/utils/smb/WsddSubnetDiscoverDevicesStrategyTest.kt index d885ad2d7b..c9a367d4bb 100644 --- a/app/src/test/java/com/amaze/filemanager/utils/smb/WsddSubnetDiscoverDevicesStrategyTest.kt +++ b/app/src/test/java/com/amaze/filemanager/utils/smb/WsddSubnetDiscoverDevicesStrategyTest.kt @@ -25,7 +25,7 @@ import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test import org.robolectric.util.ReflectionHelpers -import java.util.* +import java.util.UUID import kotlin.text.Charsets.UTF_8 /** diff --git a/app/src/testPlay/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallableTest.kt b/app/src/testPlay/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallableTest.kt index 2ad71a5b7b..3f4bc56889 100644 --- a/app/src/testPlay/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallableTest.kt +++ b/app/src/testPlay/java/com/amaze/filemanager/asynchronous/asynctasks/compress/RarHelperCallableTest.kt @@ -23,7 +23,9 @@ package com.amaze.filemanager.asynchronous.asynctasks.compress import android.os.Environment import com.github.junrar.exception.UnsupportedRarV5Exception import org.apache.commons.compress.archivers.ArchiveException -import org.junit.Assert.* +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertNull import org.junit.Test import java.io.File diff --git a/portscanner/src/main/java/com/stealthcopter/networktools/PortScan.kt b/portscanner/src/main/java/com/stealthcopter/networktools/PortScan.kt index 3d3ebb0ffa..36d439f459 100644 --- a/portscanner/src/main/java/com/stealthcopter/networktools/PortScan.kt +++ b/portscanner/src/main/java/com/stealthcopter/networktools/PortScan.kt @@ -25,7 +25,6 @@ import io.reactivex.Flowable import io.reactivex.schedulers.Schedulers import java.net.InetAddress import java.net.UnknownHostException -import java.util.* /** Created by mat on 14/12/15. */ class PortScan // This class is not to be instantiated diff --git a/portscanner/src/main/java/com/stealthcopter/networktools/portscanning/PortScanUDP.kt b/portscanner/src/main/java/com/stealthcopter/networktools/portscanning/PortScanUDP.kt index 86b26fd430..e6c6bad28c 100644 --- a/portscanner/src/main/java/com/stealthcopter/networktools/portscanning/PortScanUDP.kt +++ b/portscanner/src/main/java/com/stealthcopter/networktools/portscanning/PortScanUDP.kt @@ -17,7 +17,6 @@ */ package com.stealthcopter.networktools.portscanning -import java.lang.Exception import java.net.DatagramPacket import java.net.DatagramSocket import java.net.InetAddress diff --git a/testShared/src/test/java/com/amaze/filemanager/shadows/ShadowSmbUtil.kt b/testShared/src/test/java/com/amaze/filemanager/shadows/ShadowSmbUtil.kt index 6acbd8bb59..c4a1d2d212 100644 --- a/testShared/src/test/java/com/amaze/filemanager/shadows/ShadowSmbUtil.kt +++ b/testShared/src/test/java/com/amaze/filemanager/shadows/ShadowSmbUtil.kt @@ -25,7 +25,10 @@ import com.amaze.filemanager.utils.smb.SmbUtil import jcifs.context.SingletonContext import jcifs.smb.SmbException import jcifs.smb.SmbFile -import org.mockito.Mockito.* +import org.mockito.Mockito.any +import org.mockito.Mockito.doNothing +import org.mockito.Mockito.mock +import org.mockito.Mockito.`when` import org.robolectric.annotation.Implementation import org.robolectric.annotation.Implements import org.robolectric.shadow.api.Shadow