Skip to content

Commit

Permalink
小傅哥,fix:编译检查提醒 psiField.getName(); 替换 psiField.getNameIdentifier().ge…
Browse files Browse the repository at this point in the history
…tText();
  • Loading branch information
fuzhengwei committed Dec 22, 2021
1 parent 570a457 commit 631b1cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

group 'cn.bugstack.idea.plugin'

version '2.2.0'
version '2.2.2'

apply plugin: 'java'
apply plugin: 'idea'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected List<String> getMethods(PsiClass psiClass, String regex, String typeSt
if (isUsedLombok(psiClass)) {
PsiField[] fields = psiClass.getFields();
for (PsiField psiField : fields) {
String name = psiField.getName();
String name = psiField.getNameIdentifier().getText();
methodList.add(typeStr + name.substring(0, 1).toUpperCase() + name.substring(1));
}

Expand Down

0 comments on commit 631b1cb

Please sign in to comment.