!854 update 优化使用getFirst()替代get(0)以提高代码可读性

* update 优化使用getFirst()替代get(0)以提高代码可读性
This commit is contained in:
AprilWind
2026-06-10 02:18:35 +00:00
committed by 疯狂的狮子Li
parent 83eb74c56d
commit e38e99b7f8
12 changed files with 18 additions and 18 deletions
@@ -112,7 +112,7 @@ public class PlusDataPermissionHandler {
}
Object defaultValue = "-1";
NullSafeStandardEvaluationContext context = new NullSafeStandardEvaluationContext(defaultValue);
context.addPropertyAccessor(new NullSafePropertyAccessor(context.getPropertyAccessors().get(0), defaultValue));
context.addPropertyAccessor(new NullSafePropertyAccessor(context.getPropertyAccessors().getFirst(), defaultValue));
context.setBeanResolver(beanResolver);
DataPermissionHelper.getContext().forEach(context::setVariable);
Set<String> conditions = new HashSet<>();