此规则会标记对 jakarta.faces.component.UIComponent.CURRENT_COMPONENT 和 CURRENT_COMPOSITE_COMPONENT 常量的任何引用。
在引入 jakarta.faces.component.UIComponent.CURRENT_COMPONENT 和 CURRENT_COMPOSITE_COMPONENT 常量时,
在 JSF 2.0 中添加了 jakarta.faces.component.UIComponent.getCurrentComponent() 和 getCurrentCompositeComponent() 方法。 通过常量和方法
访问这些字段的能力造成了混淆。 将 CURRENT_COMPONENT 和 CURRENT_COMPOSITE_COMPONENT 的任何用法
分别替换为 getCurrentComponent() 和 getCurrentCompositeComponent()。
此规则具有自动修订,用于使用相应的方法更新这些常量的使用。 将定制配置复制到应用程序构建文件以启用修订自动化。
有关更多 Jakarta 10 迁移信息,请参阅 Jakarta Faces 4.0 与 3.0 之间的差异。