File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33package com.cas_parser.api.core
44
5- import java.util.Properties
5+ import com.cas_parser.api.client.CasParserClient
66
77fun getOsArch (): String {
88 val osArch = System .getProperty(" os.arch" )
@@ -16,7 +16,7 @@ fun getOsArch(): String {
1616 " x86_64" -> " x64"
1717 " arm" -> " arm"
1818 " aarch64" -> " arm64"
19- else -> " other:${ osArch} "
19+ else -> " other:$osArch "
2020 }
2121}
2222
@@ -30,13 +30,13 @@ fun getOsName(): String {
3030 osName.startsWith(" Linux" ) -> " Linux"
3131 osName.startsWith(" Mac OS" ) -> " MacOS"
3232 osName.startsWith(" Windows" ) -> " Windows"
33- else -> " Other:${ osName} "
33+ else -> " Other:$osName "
3434 }
3535}
3636
3737fun getOsVersion (): String = System .getProperty(" os.version" , " unknown" )
3838
3939fun getPackageVersion (): String =
40- Properties ::class .java.`package`.implementationVersion ? : " unknown"
40+ CasParserClient ::class .java.`package`.implementationVersion ? : " unknown"
4141
4242fun getJavaVersion (): String = System .getProperty(" java.version" , " unknown" )
You can’t perform that action at this time.
0 commit comments