Skip to content

Commit

Permalink
[#1025] Changed field level dependency to class level
Browse files Browse the repository at this point in the history
  • Loading branch information
dessina-devasia committed Nov 12, 2024
1 parent f5bc75b commit 768307d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void collectDiagnostics(PsiJavaFile unit, List<Diagnostic> diagnostics) {
if (isManagedBean
&& field.hasModifierProperty(PsiModifier.PUBLIC)
&& !field.hasModifierProperty(PsiModifier.STATIC)
&& (fieldScopes.size() != 1 || !fieldScopes.get(0).equals(DEPENDENT_FQ_NAME))) {
&& !managedBeanAnnotations.contains(DEPENDENT_FQ_NAME)) {
diagnostics.add(createDiagnostic(field, unit,
Messages.getMessage("ManagedBeanWithNonStaticPublicField"),
DIAGNOSTIC_CODE, null,
Expand Down

0 comments on commit 768307d

Please sign in to comment.