Class UserAgentLangValues
- java.lang.Object
-
- software.amazon.awssdk.core.internal.useragent.UserAgentLangValues
-
public final class UserAgentLangValues extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getAdditionalJvmLanguages()static StringkotlinVersion()Attempt to determine if Kotlin is on the classpath and if so what version is in use.static StringscalaVersion()Attempt to determine if Scala is on the classpath and if so what version is in use.
-
-
-
Method Detail
-
scalaVersion
public static String scalaVersion()
Attempt to determine if Scala is on the classpath and if so what version is in use. Does this by looking for a known Scala class (scala.util.Properties) and then calling a static method on that class via reflection to determine the versionNumberString.- Returns:
- Scala version if any, else empty string
-
kotlinVersion
public static String kotlinVersion()
Attempt to determine if Kotlin is on the classpath and if so what version is in use. Does this by looking for a known Kotlin class (kotlin.Unit) and then loading the Manifest from that class' JAR to determine the Kotlin version.- Returns:
- Kotlin version if any, else empty string
-
-