yayan 1 yıl önce
ebeveyn
işleme
d9cf69b638
6 değiştirilmiş dosya ile 2 ekleme ve 42 silme
  1. 1 4
      .gitignore
  2. 0 3
      .idea/.gitignore
  3. 0 17
      .idea/gradle.xml
  4. 0 6
      .idea/kotlinc.xml
  5. 0 7
      .idea/misc.xml
  6. 1 5
      src/main/kotlin/io/nexilis/Main.kt

+ 1 - 4
.gitignore

@@ -5,10 +5,7 @@ build/
 !**/src/test/**/build/
 
 ### IntelliJ IDEA ###
-.idea/modules.xml
-.idea/jarRepositories.xml
-.idea/compiler.xml
-.idea/libraries/
+.idea
 *.iws
 *.iml
 *.ipr

+ 0 - 3
.idea/.gitignore

@@ -1,3 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml

+ 0 - 17
.idea/gradle.xml

@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="GradleMigrationSettings" migrationVersion="1" />
-  <component name="GradleSettings">
-    <option name="linkedExternalProjectsSettings">
-      <GradleProjectSettings>
-        <option name="externalProjectPath" value="$PROJECT_DIR$" />
-        <option name="gradleHome" value="" />
-        <option name="modules">
-          <set>
-            <option value="$PROJECT_DIR$" />
-          </set>
-        </option>
-      </GradleProjectSettings>
-    </option>
-  </component>
-</project>

+ 0 - 6
.idea/kotlinc.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="KotlinJpsPluginSettings">
-    <option name="version" value="2.0.0" />
-  </component>
-</project>

+ 0 - 7
.idea/misc.xml

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ExternalStorageConfigurationManager" enabled="true" />
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
-    <output url="file://$PROJECT_DIR$/out" />
-  </component>
-</project>

+ 1 - 5
src/main/kotlin/io/nexilis/Main.kt

@@ -117,10 +117,6 @@ fun getXTimestamp(): String {
     return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX").format(Date())
 }
 
-fun getXTimestamp(date: Date?): String {
-    return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX").format(date)
-}
-
 @Throws(NoSuchAlgorithmException::class, InvalidKeySpecException::class)
 fun generatePrivateKey(privateKey: String): PrivateKey {
     val decodeBytes: ByteArray = Base64.getDecoder().decode(privateKey)
@@ -240,7 +236,7 @@ class LoggingInterceptor : Interceptor {
 }
 
 fun print(vararg args: CharSequence?) {
-    println(java.lang.String.join(",", *args))
+    println(args.joinToString(separator = ","))
 }
 
 fun bodyToString(request: Request): String {