diff src/name/blackcap/imageprep/SettingsDialog.kt @ 30:098c4f5507c7

Convert to JDK 15.
author David Barts <n5jrn@me.com>
date Mon, 13 Jun 2022 11:31:49 -0700
parents 9bf3d8de6904
children
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/SettingsDialog.kt	Mon Jun 13 09:21:24 2022 -0700
+++ b/src/name/blackcap/imageprep/SettingsDialog.kt	Mon Jun 13 11:31:49 2022 -0700
@@ -27,7 +27,7 @@
     private val _maxDimension = MaxDimSpinner(_PROPS.getInt("maxDimension"))
     val maxDimension: Int
     get() {
-        return _maxDimension.value as Int
+        return _maxDimension.value
     }
     
     /* JPEG output quality */
@@ -227,7 +227,7 @@
     val raw = getProperty(key)
     if (raw.isNullOrEmpty())
         return false
-    val c1 = raw[0].toLowerCase()
+    val c1 = raw[0].lowercaseChar()
     return c1 == 't' || c1 == 'y'
 }