Skip to content

Commit

Permalink
Merge pull request #23 from BOFA1ex/main
Browse files Browse the repository at this point in the history
fix: #19 interface#constant should be filtered
  • Loading branch information
lkqm committed Dec 17, 2021
2 parents 21839ec + b52d6f5 commit b32e383
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/io/yapix/parse/util/PsiUtils.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.yapix.parse.util;

import com.google.common.collect.Lists;
import com.intellij.lang.jvm.JvmModifier;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaPsiFacade;
Expand Down Expand Up @@ -29,11 +30,7 @@ public static PsiField[] getFields(PsiClass t) {
}

public static boolean isNeedField(PsiField field) {
PsiModifierList modifierList = field.getModifierList();
if (modifierList == null || !modifierList.hasExplicitModifier(PsiModifier.STATIC)) {
return true;
}
return false;
return !field.hasModifier(JvmModifier.STATIC);
}

/**
Expand Down

0 comments on commit b32e383

Please sign in to comment.