From e0b730896043b7f4176fc9efc03c1ab6482c532d Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 31 Jan 2024 18:03:04 -0800 Subject: [PATCH] Minor cleanups --- .../kotlin/com/example/CryptoPriceExample.kt | 2 +- .../main/com/example/CryptoPriceExample.kt | 2 +- .../kotlin/com/example/CryptoPriceExample.kt | 2 +- pom.xml | 22 ++----------------- 4 files changed, 5 insertions(+), 23 deletions(-) diff --git a/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt b/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt index 4eb0a6c..6aa15fc 100644 --- a/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt +++ b/examples/bld/src/main/kotlin/com/example/CryptoPriceExample.kt @@ -41,7 +41,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println("${e.message} (${e.id})") - } catch (e: IllegalArgumentException) { + } catch (ignore: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/examples/gradle/bin/main/com/example/CryptoPriceExample.kt b/examples/gradle/bin/main/com/example/CryptoPriceExample.kt index da169d0..5c670a8 100644 --- a/examples/gradle/bin/main/com/example/CryptoPriceExample.kt +++ b/examples/gradle/bin/main/com/example/CryptoPriceExample.kt @@ -39,7 +39,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println(e.message) - } catch (e: IllegalArgumentException) { + } catch (ignore: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt b/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt index 4eb0a6c..6aa15fc 100644 --- a/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt +++ b/examples/gradle/src/main/kotlin/com/example/CryptoPriceExample.kt @@ -41,7 +41,7 @@ fun main(args: Array) { } catch (e: CryptoException) { System.err.println("HTTP Status Code: ${e.statusCode}") System.err.println("${e.message} (${e.id})") - } catch (e: IllegalArgumentException) { + } catch (ignore: IllegalArgumentException) { System.err.println("Could not display the specified currency: ${args[1]}") } catch (e: IOException) { System.err.println(e.message) diff --git a/pom.xml b/pom.xml index c8257fc..f913bc2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.thauvin.erik cryptoprice - 1.0.2 + 1.0.3-SNAPSHOT cryptoprice Retrieve cryptocurrencies prices https://github.com/ethauvin/cryptoprice @@ -18,25 +18,7 @@ org.jetbrains.kotlin kotlin-stdlib - 1.9.21 - compile - - - org.jetbrains.kotlin - kotlin-stdlib-common - 1.9.21 - compile - - - org.jetbrains.kotlin - kotlin-stdlib-jdk7 - 1.9.21 - compile - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - 1.9.21 + 1.9.22 compile