Skip to content

Commit

Permalink
update v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkylin committed Mar 3, 2024
1 parent 43bd8a2 commit a9c9168
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
26 changes: 15 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@

## [Unreleased]

## [1.2.4] - 2024-03-03
## [1.2.7] - 2024-03-03

### Changed
Modify deprecated methods - com.intellij.psi.impl.java.stubs.index.JavaFieldNameIndex#get
@Tag annotation supports parent classes
update intellij-platform-plugin-template v1.11.3

- find method to modify deprecated methods - com.intellij.psi.impl.java.stubs.index.JavaFieldNameIndex#get
- @Tag annotation supports parent classes
- update intellij-platform-plugin-template v1.11.3

### Fixed
fix problem: delete annotation affects other files

- fix problem: delete annotation affects other files

### 变更
修正已废弃的方法 - com.intellij.psi.impl.java.stubs.index.JavaFieldNameIndex#get
@Tag注解支持对父类的判定
更新到 intellij-platform-plugin-template v1.11.3

- 找到了一个做法可以去修正已废弃的方法 - com.intellij.psi.impl.java.stubs.index.JavaFieldNameIndex#get
- @Tag注解支持对父类的判定
- 更新到 intellij-platform-plugin-template v1.11.3

### 修复
修复一个问题:删除注解时影响到了其他文件

- 修复一个问题:删除注解时影响到了其他文件

## [1.2.1] - 2024-01-30

Expand Down Expand Up @@ -132,8 +136,8 @@ fix problem: delete annotation affects other files
- 作用于Controller类或POJO类,你可以很方便的一键生成Protostuff注解「@Tag」,并且可以直接将JavaDoc转换为Swagger2.0注解。反过来,你也可以方便的一键将Swagger2.0注解转换为JavaDoc。
- 后续会添加更多方便的功能,敬请期待吧!

[Unreleased]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.2.4...main
[1.2.4]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.2.1...v1.2.4
[Unreleased]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.2.7...main
[1.2.7]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.2.1...v1.2.7
[1.2.1]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.1.4...v1.2.1
[1.1.4]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.1.3...v1.1.4
[1.1.3]: https://github.com/bitkylin/bitkylin-universal-generate/compare/v1.0.7...v1.1.3
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.bitkylin.bitkyuniversalgenerate
pluginName = bitkylin-universal-generate
pluginRepositoryUrl = https://github.com/bitkylin/bitkylin-universal-generate
# SemVer format -> https://semver.org
pluginVersion = 1.2.4
pluginVersion = 1.2.7

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public static List<String> queryFieldJavaDocByNameDirectly(WriteContext.PsiFileC
if (StringUtils.isBlank(elementName)) {
return Lists.newArrayList();
}
Collection<PsiField> psiFieldList = JavaFieldNameIndex.getInstance().getFields(
// 后续改为使用这个方法:JavaFieldNameIndex#getFields
Collection<PsiField> psiFieldList = JavaFieldNameIndex.getInstance().get(

Check warning on line 37 in src/main/java/cc/bitky/jetbrains/plugin/universalgenerate/util/CommentQueryUtils.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Deprecated API usage

'get(java.lang.@org.jetbrains.annotations.NotNull String, com.intellij.openapi.project.@org.jetbrains.annotations.NotNull Project, com.intellij.psi.search.@org.jetbrains.annotations.NotNull GlobalSearchScope)' is deprecated
elementName,
psiFileContext.getProject(),
GlobalSearchScope.projectScope(psiFileContext.getProject())
Expand Down

0 comments on commit a9c9168

Please sign in to comment.