Skip to content

Commit 8d2eff0

Browse files
committed
clean up
1 parent 1ba65d0 commit 8d2eff0

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/kotlin/io/openapiprocessor/intellij/I18nSupport.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ fun i18n(@PropertyKey(resourceBundle = BUNDLE) key: String): String {
1919
return I18nMessages.bundle.getMessage(key)
2020
}
2121

22+
@Suppress("unused")
2223
fun i18nLazy(@PropertyKey(resourceBundle = BUNDLE) key: String): Supplier<String> {
2324
return I18nMessages.bundle.getLazyMessage(key)
2425
}
2526

27+
@Suppress("unused")
2628
fun i18n(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any?): String {
2729
return I18nMessages.bundle.getMessage(key, *params)
2830
}

src/main/kotlin/io/openapiprocessor/intellij/Methods.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package io.openapiprocessor.intellij
77

8+
@Suppress("unused")
89
object Methods {
910
private val methods = listOf("delete", "get", "head", "patch", "post", "put", "trace")
1011

src/main/kotlin/io/openapiprocessor/intellij/TargetMethodFinder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.intellij.psi.util.PsiTreeUtil
1515

1616
data class TargetMethod(val project: Project, val uri: String, val method: String)
1717

18+
@Suppress("unused")
1819
class TargetMethodFinder {
1920

2021
fun findTargetMethods(targetMethod: TargetMethod): List<PsiElement> {

src/main/kotlin/io/openapiprocessor/intellij/TypeMappingSchemaProvider.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ import com.intellij.openapi.vfs.VirtualFile
99
import com.intellij.openapi.vfs.impl.http.HttpsFileSystem
1010
import com.intellij.psi.PsiFile
1111
import com.jetbrains.jsonSchema.extension.ContentAwareJsonSchemaFileProvider
12-
import org.slf4j.Logger
13-
import org.slf4j.LoggerFactory
1412

1513
class TypeMappingSchemaProvider: ContentAwareJsonSchemaFileProvider {
16-
private val log: Logger = LoggerFactory.getLogger(this.javaClass.name)
1714

1815
override fun getSchemaFile(file: PsiFile): VirtualFile? {
1916
if (!isMappingFile(file))
@@ -29,6 +26,7 @@ class TypeMappingSchemaProvider: ContentAwareJsonSchemaFileProvider {
2926

3027
private fun getSchema(version: String): VirtualFile? {
3128
// same as https://openapiprocessor.io/schemas/mapping/mapping-$version.json
29+
@Suppress("UnstableApiUsage")
3230
return HttpsFileSystem.getHttpsInstance().findFileByPath(
3331
"raw.githubusercontent.com" +
3432
"/openapi-processor/openapi-processor" +

0 commit comments

Comments
 (0)