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

Convert to JDK 15.
author David Barts <n5jrn@me.com>
date Mon, 13 Jun 2022 11:31:49 -0700
parents 5234e4500d45
children
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/Files.kt	Mon Jun 13 09:21:24 2022 -0700
+++ b/src/name/blackcap/imageprep/Files.kt	Mon Jun 13 11:31:49 2022 -0700
@@ -19,7 +19,7 @@
 enum class OS {
     MAC, UNIX, WINDOWS, OTHER;
     companion object {
-        private val rawType = System.getProperty("os.name")?.toLowerCase()
+        private val rawType = System.getProperty("os.name")?.lowercase()
         val type = if (rawType == null) {
                 OTHER
             } else if (rawType.contains("win")) {
@@ -40,7 +40,7 @@
 
 /* file names */
 
-private val SHORTNAME = Application.MYNAME.toLowerCase()
+private val SHORTNAME = Application.MYNAME.lowercase()
 private val LONGNAME = "name.blackcap." + SHORTNAME
 private val HOME = System.getenv("HOME")
 val PF_DIR = when (OS.type) {