Skip to content

Commit

Permalink
修复获取函数签名时忽略了参数列表的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsmf committed Oct 17, 2023
1 parent f292718 commit f446082
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`等注解对排序的影响
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f446082

Please sign in to comment.