diff --git a/data/src/main/java/org/springframework/security/data/aot/hint/package-info.java b/data/src/main/java/org/springframework/security/data/aot/hint/package-info.java new file mode 100644 index 0000000000..d51d23efaf --- /dev/null +++ b/data/src/main/java/org/springframework/security/data/aot/hint/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2004-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * AOT integration for Spring Security's Data integration. + */ +@NullMarked +package org.springframework.security.data.aot.hint; + +import org.jspecify.annotations.NullMarked; diff --git a/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java b/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java index 61372a1ce1..efff4712c4 100644 --- a/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java +++ b/data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java @@ -116,7 +116,7 @@ public class SecurityEvaluationContextExtension implements EvaluationContextExte * Creates a new instance that always uses the same {@link Authentication} object. * @param authentication the {@link Authentication} to use */ - public SecurityEvaluationContextExtension(Authentication authentication) { + public SecurityEvaluationContextExtension(@Nullable Authentication authentication) { this.authentication = authentication; } diff --git a/data/src/main/java/org/springframework/security/data/repository/query/package-info.java b/data/src/main/java/org/springframework/security/data/repository/query/package-info.java new file mode 100644 index 0000000000..e2d7b00537 --- /dev/null +++ b/data/src/main/java/org/springframework/security/data/repository/query/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2004-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Spring Security extensions for Spring Data queries. + */ +@NullMarked +package org.springframework.security.data.repository.query; + +import org.jspecify.annotations.NullMarked;