diff --git a/CHANGELOG.md b/CHANGELOG.md index b67e9f0..9dde84b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ # intellij-format-methods-plugin Changelog +## [1.0.8] (2023/10/17) +- Fixed an issue where parameter lists were ignored when getting function signatures +- 修复获取函数签名时忽略了参数列表的问题 + ## [1.0.7] (2023/10/10) - Fixed the effect of the annotations like `@Override` on sorting - 修复了像`@Override`等注解对排序的影响 diff --git a/gradle.properties b/gradle.properties index 451bcda..3928c66 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.dcsmf.intellijformatmethodsplugin pluginName = FormatMethodPyramid pluginRepositoryUrl = https://github.com/dcsmf/intellij-format-methods-plugin # SemVer format -> https://semver.org -pluginVersion = 1.0.7 +pluginVersion = 1.0.8 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 201 diff --git a/src/main/kotlin/com/github/dcsmf/plugin/formatmethods/utils/MethodUtil.kt b/src/main/kotlin/com/github/dcsmf/plugin/formatmethods/utils/MethodUtil.kt index 4106807..ad2c178 100644 --- a/src/main/kotlin/com/github/dcsmf/plugin/formatmethods/utils/MethodUtil.kt +++ b/src/main/kotlin/com/github/dcsmf/plugin/formatmethods/utils/MethodUtil.kt @@ -49,7 +49,7 @@ object MethodUtil { if (modifier.isEmpty() && typeParameter.isEmpty() && returnType.isEmpty() && parameters.isEmpty() && throws.isEmpty()) { methodName = method.name } - return modifier + typeParameter + returnType + methodName + throws + return modifier + typeParameter + returnType + methodName + parameters + throws } // @JvmStatic