diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-03-29 10:24:26 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-28 23:07:50 -0600 |
commit | 03a838ba2d81af6dc1ce34cb8e3ac64cc2edc69e (patch) | |
tree | 001dd55b0bb4b6702a10efdd3f29a91a04027334 /ui | |
parent | b00aacbc41e902f0d10a78db7ec216ceec48e035 (diff) |
ui: Remove unnecessary non-null assertion in TAG fields
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui')
10 files changed, 10 insertions, 10 deletions
diff --git a/ui/src/main/java/com/wireguard/android/Application.kt b/ui/src/main/java/com/wireguard/android/Application.kt index 223b3b04..f89a6a70 100644 --- a/ui/src/main/java/com/wireguard/android/Application.kt +++ b/ui/src/main/java/com/wireguard/android/Application.kt @@ -88,7 +88,7 @@ class Application : android.app.Application(), OnSharedPreferenceChangeListener companion object { val USER_AGENT = String.format(Locale.ENGLISH, "WireGuard/%s (Android %d; %s; %s; %s %s; %s)", BuildConfig.VERSION_NAME, Build.VERSION.SDK_INT, if (Build.SUPPORTED_ABIS.isNotEmpty()) Build.SUPPORTED_ABIS[0] else "unknown ABI", Build.BOARD, Build.MANUFACTURER, Build.MODEL, Build.FINGERPRINT) - private val TAG = "WireGuard/${Application::class.simpleName!!}" + private val TAG = "WireGuard/${Application::class.simpleName}" private lateinit var weakSelf: WeakReference<Application> @JvmStatic diff --git a/ui/src/main/java/com/wireguard/android/BootShutdownReceiver.kt b/ui/src/main/java/com/wireguard/android/BootShutdownReceiver.kt index f0699b91..5621dc83 100644 --- a/ui/src/main/java/com/wireguard/android/BootShutdownReceiver.kt +++ b/ui/src/main/java/com/wireguard/android/BootShutdownReceiver.kt @@ -29,6 +29,6 @@ class BootShutdownReceiver : BroadcastReceiver() { } companion object { - private val TAG = "WireGuard/${BootShutdownReceiver::class.simpleName!!}" + private val TAG = "WireGuard/${BootShutdownReceiver::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/QuickTileService.kt b/ui/src/main/java/com/wireguard/android/QuickTileService.kt index e4099bb3..f7e9c0e1 100644 --- a/ui/src/main/java/com/wireguard/android/QuickTileService.kt +++ b/ui/src/main/java/com/wireguard/android/QuickTileService.kt @@ -153,6 +153,6 @@ class QuickTileService : TileService() { } companion object { - private val TAG = "WireGuard/${QuickTileService::class.simpleName!!}" + private val TAG = "WireGuard/${QuickTileService::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/activity/TunnelToggleActivity.kt b/ui/src/main/java/com/wireguard/android/activity/TunnelToggleActivity.kt index cf54ede0..99ab6871 100644 --- a/ui/src/main/java/com/wireguard/android/activity/TunnelToggleActivity.kt +++ b/ui/src/main/java/com/wireguard/android/activity/TunnelToggleActivity.kt @@ -39,6 +39,6 @@ class TunnelToggleActivity : AppCompatActivity() { } companion object { - private val TAG = "WireGuard/${TunnelToggleActivity::class.simpleName!!}" + private val TAG = "WireGuard/${TunnelToggleActivity::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/configStore/FileConfigStore.kt b/ui/src/main/java/com/wireguard/android/configStore/FileConfigStore.kt index f1289a3b..ec34e389 100644 --- a/ui/src/main/java/com/wireguard/android/configStore/FileConfigStore.kt +++ b/ui/src/main/java/com/wireguard/android/configStore/FileConfigStore.kt @@ -77,6 +77,6 @@ class FileConfigStore(private val context: Context) : ConfigStore { } companion object { - private val TAG = "WireGuard/${FileConfigStore::class.simpleName!!}" + private val TAG = "WireGuard/${FileConfigStore::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/fragment/BaseFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/BaseFragment.kt index 5238e4d6..c40103aa 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/BaseFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/BaseFragment.kt @@ -103,6 +103,6 @@ abstract class BaseFragment : Fragment(), OnSelectedTunnelChangedListener { companion object { private const val REQUEST_CODE_VPN_PERMISSION = 23491 - private val TAG = "WireGuard/${BaseFragment::class.simpleName!!}" + private val TAG = "WireGuard/${BaseFragment::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt index 03b06d28..7e872ffa 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt @@ -229,6 +229,6 @@ class TunnelEditorFragment : BaseFragment(), AppExclusionListener { companion object { private const val KEY_LOCAL_CONFIG = "local_config" private const val KEY_ORIGINAL_NAME = "original_name" - private val TAG = "WireGuard/${TunnelEditorFragment::class.simpleName!!}" + private val TAG = "WireGuard/${TunnelEditorFragment::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt index 9b224539..66fe9944 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt @@ -397,6 +397,6 @@ class TunnelListFragment : BaseFragment() { const val REQUEST_IMPORT = 1 private const val REQUEST_TARGET_FRAGMENT = 2 private const val CHECKED_ITEMS = "CHECKED_ITEMS" - private val TAG = "WireGuard/${TunnelListFragment::class.simpleName!!}" + private val TAG = "WireGuard/${TunnelListFragment::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt b/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt index 92c9cd80..cd671bde 100644 --- a/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt +++ b/ui/src/main/java/com/wireguard/android/preference/ZipExporterPreference.kt @@ -91,6 +91,6 @@ class ZipExporterPreference(context: Context, attrs: AttributeSet?) : Preference } companion object { - private val TAG = "WireGuard/${ZipExporterPreference::class.simpleName!!}" + private val TAG = "WireGuard/${ZipExporterPreference::class.simpleName}" } } diff --git a/ui/src/main/java/com/wireguard/android/util/ExceptionLoggers.kt b/ui/src/main/java/com/wireguard/android/util/ExceptionLoggers.kt index 53485f46..0b371b73 100644 --- a/ui/src/main/java/com/wireguard/android/util/ExceptionLoggers.kt +++ b/ui/src/main/java/com/wireguard/android/util/ExceptionLoggers.kt @@ -22,6 +22,6 @@ enum class ExceptionLoggers(private val priority: Int) : BiConsumer<Any?, Throwa } companion object { - private val TAG = "WireGuard/${ExceptionLoggers::class.simpleName!!}" + private val TAG = "WireGuard/${ExceptionLoggers::class.simpleName}" } } |