Skip to content

Commit 33c6098

Browse files
committed
build
1 parent 3fe2065 commit 33c6098

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/changelog/ChangeLog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum class ChangeType(val sectionTitle: String) {
3939

4040
class Serializer : StdSerializer<ChangeType>(ChangeType::class.java) {
4141
override fun serialize(value: ChangeType, gen: JsonGenerator?, provider: SerializerProvider?) {
42-
gen?.writeString(value.name.toLowerCase())
42+
gen?.writeString(value.name.lowercase())
4343
}
4444
}
4545
}

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/changelog/tasks/NewChange.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ open class NewChange : ChangeLogTask() {
6565
)
6666
}
6767

68-
private fun newFile(changeType: ChangeType) = nextReleaseDirectory.file("${changeType.name.toLowerCase()}-${UUID.randomUUID()}.json").get().asFile.apply {
68+
private fun newFile(changeType: ChangeType) = nextReleaseDirectory.file("${changeType.name.lowercase()}-${UUID.randomUUID()}.json").get().asFile.apply {
6969
parentFile?.mkdirs()
7070
createNewFile()
7171
}

buildSrc/src/main/kotlin/toolkit-intellij-subplugin.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ configurations {
4848

4949
// Exclude dependencies that ship with iDE
5050
exclude(group = "org.slf4j")
51-
if (!name.startsWith("kotlinCompiler")) {
51+
if (!name.startsWith("kotlinCompiler") && !name.startsWith("generateModels")) {
5252
// we want kotlinx-coroutines-debug and kotlinx-coroutines-test
5353
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core-jvm")
5454
exclude(group = "org.jetbrains.kotlinx", "kotlinx-coroutines-core")

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/PathMapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PathMapper(private val mappings: List<PathMapping>) {
5555

5656
fun normalizeLocal(localPath: String): String {
5757
val updatedPath = if (SystemInfo.isWindows) {
58-
localPath.toLowerCase()
58+
localPath.lowercase()
5959
} else {
6060
localPath
6161
}

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudformation/CloudFormationTemplate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface CloudFormationTemplate {
4040
}
4141

4242
private fun isYaml(templateFile: VirtualFile): Boolean = templateFile.fileType == YAMLFileType.YML ||
43-
templateFile.extension?.toLowerCase() in YAML_EXTENSIONS
43+
templateFile.extension?.lowercase() in YAML_EXTENSIONS
4444

4545
private val YAML_EXTENSIONS = setOf("yaml", "yml")
4646
}

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamic/DynamicResourceStateChangedNotificationHandler.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class DynamicResourceStateChangedNotificationHandler(private val project: Projec
2525
message(
2626
"dynamic_resources.operation_status_notification_title",
2727
state.resourceIdentifier ?: state.resourceType,
28-
state.operation.name.toLowerCase()
28+
state.operation.name.lowercase()
2929
),
3030
message(
3131
"dynamic_resources.operation_status_success",
3232
state.resourceIdentifier ?: state.resourceType,
33-
state.operation.name.toLowerCase()
33+
state.operation.name.lowercase()
3434
),
3535
project
3636
)
@@ -48,7 +48,7 @@ class DynamicResourceStateChangedNotificationHandler(private val project: Projec
4848
message(
4949
"dynamic_resources.operation_status_failed_no_message",
5050
state.resourceIdentifier ?: state.resourceType,
51-
state.operation.name.toLowerCase()
51+
state.operation.name.lowercase()
5252
)
5353
)
5454
} else {
@@ -57,7 +57,7 @@ class DynamicResourceStateChangedNotificationHandler(private val project: Projec
5757
message(
5858
"dynamic_resources.operation_status_failed",
5959
state.resourceIdentifier ?: state.resourceType,
60-
state.operation.name.toLowerCase(),
60+
state.operation.name.lowercase(),
6161
state.message
6262
)
6363
)
@@ -79,7 +79,7 @@ class DynamicResourceStateChangedNotificationHandler(private val project: Projec
7979
message(
8080
"dynamic_resources.operation_status_notification_title",
8181
state.resourceIdentifier ?: state.resourceType,
82-
state.operation.name.toLowerCase()
82+
state.operation.name.lowercase()
8383
),
8484
errorMessage,
8585
project

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamic/DynamicResourcesUpdateManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class DynamicResourceUpdateManager(private val project: Project) {
5050
message(
5151
"dynamic_resources.operation_status_notification_title",
5252
dynamicResourceIdentifier.resourceIdentifier,
53-
message("general.delete").toLowerCase()
53+
message("general.delete").lowercase()
5454
),
5555
project
5656
)
@@ -80,7 +80,7 @@ internal class DynamicResourceUpdateManager(private val project: Project) {
8080
message(
8181
"dynamic_resources.operation_status_notification_title",
8282
dynamicResourceIdentifier.resourceIdentifier,
83-
message("dynamic_resources.editor.submitResourceUpdateRequest_text").toLowerCase()
83+
message("dynamic_resources.editor.submitResourceUpdateRequest_text").lowercase()
8484
),
8585
project
8686
)
@@ -152,7 +152,7 @@ internal class DynamicResourceUpdateManager(private val project: Project) {
152152
message(
153153
"dynamic_resources.operation_status_notification_title",
154154
mutation.resourceIdentifier ?: mutation.resourceType,
155-
mutation.operation.name.toLowerCase()
155+
mutation.operation.name.lowercase()
156156
),
157157
project
158158
)

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/wizard/SchemaCodeGenUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class SchemaCodeGenUtils {
6464
if (builder.isNotEmpty()) {
6565
builder.append(IdentifierFormatter.PACKAGE_SEPARATOR)
6666
}
67-
builder.append(IdentifierFormatter.toValidIdentifier(segment.toLowerCase()))
67+
builder.append(IdentifierFormatter.toValidIdentifier(segment.lowercase()))
6868
return this
6969
}
7070

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/s3/editor/S3TreeTable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class S3TreeTable(
160160
TreeSpeedSearch.installOn(
161161
tree,
162162
false,
163-
Function<TreePath, String> { obj ->
163+
Function<TreePath, String?> { obj ->
164164
val node = obj.lastPathComponent as DefaultMutableTreeNode
165165
val userObject = node.userObject as? S3TreeNode ?: return@Function null
166166
return@Function if (userObject !is S3TreeContinuationNode<*>) {

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/ui/ResourceSelector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class ResourceSelector<T> private constructor(
160160
setEditable(false)
161161

162162
if (sortOnLoad) {
163-
model.replaceAll(value.sortedBy { it.toString().toLowerCase() })
163+
model.replaceAll(value.sortedBy { it.toString().lowercase() })
164164
} else {
165165
model.replaceAll(value.toList())
166166
}

0 commit comments

Comments
 (0)